-
Notifications
You must be signed in to change notification settings - Fork 7
41 lines (37 loc) · 1005 Bytes
/
build-and-test.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
name: build-and-test.yml
on: [push]
jobs:
build-and-test-plugin:
runs-on: ubuntu-latest
steps:
- name: Checkout Github repository
uses: actions/checkout@v3
with:
submodules: "recursive"
- name: Setup NodeJS environment
uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn install --immutable --prefer-offline
- name: Check types
run: yarn typecheck
- name: Lint
run: yarn lint
- name: Unit tests
run: yarn test:ci
- name: Build frontend
run: yarn build
- name: Setup Go environment
uses: actions/setup-go@v3
- name: Run Go tests using Mage
uses: magefile/mage-action@v2
with:
version: latest
args: vtest
- name: Build backend
uses: magefile/mage-action@v2
with:
version: latest
args: -v buildAll