-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (46 loc) · 1.08 KB
/
integration-tests.yml
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
44
45
46
47
48
#? CV_project/.github/workflows/integration-tests.yml
---
name: integration tests
# events workflow
on:
push:
paths:
- api/**
- .github/workflows/integration-tests.yml
branches:
- main
pull_request:
paths:
- api/**
- .github/workflows/integration-tests.yml
branches:
- main
workflow_dispatch: null
# jobs workflow
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/c
- name: set up go
uses: actions/setup-
with:
go-version: 1.22.0
- name: install dependencies
run: go mod tidy
working-directory: ./api
- name: run integration tests
run: go test -v ./test
working-directory: ./a
- name: verify go installation
run: go version
- name: cache go modules
uses: actions/cac
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('api/go.sum') }}
restore-keys: |
${{ runner.os }}-go-