-
Notifications
You must be signed in to change notification settings - Fork 6
59 lines (50 loc) · 1.37 KB
/
continuous-integration.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Continuous Integration
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: read-all
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: '.nvmrc'
- run: yarn install --frozen-lockfile --non-interactive
- name: 'Run eslint'
run: yarn -s lint
build-and-test-library:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: '.nvmrc'
- run: yarn install --frozen-lockfile --non-interactive
- name: 'Build library'
run: yarn build:lib
- name: 'Test library'
run: yarn test:lib
build-and-test-cli:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
cache: yarn
node-version-file: '.nvmrc'
- run: yarn install --frozen-lockfile --non-interactive
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
- run: go version
- name: 'Build cli'
run: yarn build:cli
- name: 'Test cli'
run: yarn test:cli