-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (30 loc) · 830 Bytes
/
Copy pathtest.yml
File metadata and controls
38 lines (30 loc) · 830 Bytes
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
name: Test
on:
workflow_call:
jobs:
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Clone NotEnoughUpdates-REPO
uses: actions/checkout@v6
with:
repository: NotEnoughUpdates/NotEnoughUpdates-REPO
path: NotEnoughUpdates-REPO/
token: ${{ secrets.GITHUB_TOKEN }}
- name: Go Setup
uses: actions/setup-go@v6
with:
go-version: "1.25"
- name: Download dependencies
run: go mod download
- name: Run tests
run: go test -v -race -coverprofile=coverage.out ./...
- name: Upload coverage
uses: actions/upload-artifact@v6
with:
name: coverage
path: coverage.out
retention-days: 7