-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (37 loc) · 903 Bytes
/
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:
- main
pull_request:
permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
environment: production
permissions:
contents: "read"
id-token: "write"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS
run: git lfs checkout
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- name: Install npm
run: npm ci
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: "./go.mod"
- name: "build"
run: "echo \"::error file=.routes/main.go,line=10,col=5::Something went wrong\" && exit 1"