forked from Geertvdc/setup-hub
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (36 loc) · 864 Bytes
/
workflow.yml
File metadata and controls
41 lines (36 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Test
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 12.x
uses: actions/setup-node@v3
with:
node-version: '12'
- name: Build
run: |
npm install
npm run format-check
npm run build
npm run package
test:
needs: build
name: Test
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v3
- name: Install Github Cli
uses: ButterCam/setup-github-cli@master
- name: run gh
env:
GITHUB_USER: ${{ secrets.GITHUB_USER }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh --version