-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (26 loc) · 750 Bytes
/
test.yml
File metadata and controls
34 lines (26 loc) · 750 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
name: "Test"
on: [push, pull_request, workflow_dispatch]
jobs:
go-test:
name: "Run Go tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Set up Go"
uses: actions/setup-go@v5
- name: Set up Git config
run: |
# This needs to be done for the gitserver test
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
- name: "Run Go tests"
run: go test ./...
e2e-tests:
name: "Run end-to-end tests"
runs-on: ubuntu-latest
steps:
- name: "Checkout code"
uses: actions/checkout@v4
- name: "Run end-to-end tests"
run: test/run.sh