-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (33 loc) · 853 Bytes
/
test.yml
File metadata and controls
35 lines (33 loc) · 853 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
name: test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
name: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
cache: true
# Cloning outside of workspace is currently not possible, see https://github.com/actions/checkout/issues/197
# Therefore, we move later
# (we need ../reva available due to a replace in the go.mod file)
- name: Cloning reva
uses: actions/checkout@v4
with:
repository: cs3org/reva
path: reva
- run: mv reva ../reva
- name: Go mod tidy
run: go mod tidy
- name: Install dependencies
run: go get .
- name: Test with the Go CLI
run: go test -v ./...