-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (41 loc) · 966 Bytes
/
main.yaml
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
name: Sample Tests
on:
push:
paths-ignore:
- "docs/**"
- "release/**"
- "deployments/**"
pull_request:
paths-ignore:
- "docs/**"
- "release/**"
- "deployments/**"
workflow_dispatch:
jobs:
tests:
name: Sample Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.HELPER_APP_KEY }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22.2'
- name: Build
run: go build -o bin/nmath
shell: bash
- name: Test
run: bin/nmath > test.log
- name: Archive logs
if: always()
uses: actions/upload-artifact@v4
with:
name: test.log
path: test.log
compression-level: 0