-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (54 loc) · 1.56 KB
/
tests.yml
File metadata and controls
69 lines (54 loc) · 1.56 KB
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
60
61
62
63
64
65
66
67
68
69
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.25']
bun: ['latest']
timeout-minutes: 10
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Go ${{ matrix.go }}
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version: ${{ matrix.go }}
- name: Setup Bun ${{ matrix.bun }}
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ matrix.bun }}
- name: Bun install
run: bun install
- name: Cache tools
uses: actions/cache@v5
with:
path: |
./.tools
key: ${{ runner.os }}-aptre-tools-${{ hashFiles('**/go.sum') }}
- name: Build Javascript
run: bun run build
- name: Test Go
run: bun run go:aptre -- test
- name: Test Js
run: bun test:js
- name: Lint Js
run: bun run lint:js
- name: Lint Go
run: bun run lint:go
- name: Depcheck Js
run: bun run deps
- name: Install chrome
uses: browser-actions/setup-chrome@latest
# Issue: https://github.com/agnivade/wasmbrowsertest/issues/60
# Remove the || true once fixed.
- name: Test with chrome
run: bun run go:aptre -- test --browser || true