-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (43 loc) · 1.19 KB
/
tests.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
name: Tests
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
# Builds images for target boards.
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
go: ['1.22']
node: [21.x]
timeout-minutes: 10
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version: ${{ matrix.go }}
- name: Setup Node.JS ${{ matrix.node }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
- name: Yarn install
run: yarn install
- name: Dependency check
run: yarn run deps
- name: Build Javascript
run: yarn run build
- name: Lint Javascript
run: yarn run lint:js
- name: Test Js
run: yarn test:js
- name: Lint Go
run: yarn run lint:go
- name: Test Go
run: make test