-
Notifications
You must be signed in to change notification settings - Fork 68
47 lines (45 loc) · 1.11 KB
/
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
42
43
44
45
46
47
name: Test
on:
push:
branches:
- master
tags:
- v*
pull_request:
workflow_dispatch:
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- name: Run go version
run: go version
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 20
- run: node --version
- name: Install scriptlets npm packages
run: npm ci
working-directory: scriptlets
- name: Set up Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Create placeholder asset
# go:embed requires the directory to exist and be non-empty
run: |
mkdir -p ./frontend/dist
touch ./frontend/dist/placeholder
- name: Run tests
run: task test