-
Notifications
You must be signed in to change notification settings - Fork 17
25 lines (25 loc) · 755 Bytes
/
Copy pathtest.yml
File metadata and controls
25 lines (25 loc) · 755 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
name: Go tests
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install hurl
run: |
curl --location --remote-name https://github.com/Orange-OpenSource/hurl/releases/download/4.1.0/hurl_4.1.0_amd64.deb
sudo apt-get update && sudo apt-get install ./hurl_4.1.0_amd64.deb
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Go (from go.mod)
uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Run tests
run: go test ./...
- name: Run tests (short + race)
run: go test -short -race ./...