-
Notifications
You must be signed in to change notification settings - Fork 6
43 lines (35 loc) · 873 Bytes
/
checks.yaml
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
name: CI
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
pull_request:
branches:
- main
paths-ignore:
- 'README.md'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Download demos cache file
run: curl -L -o demos.txt https://gitlab.com/akiver/cs-demos/-/raw/main/demos.txt
- name: Restore demos cache
uses: actions/cache@v4
id: demos-cache
with:
path: cs-demos
key: demos-${{ hashFiles('demos.txt') }}
- name: Download demos
if: steps.demos-cache.outputs.cache-hit != 'true'
run: ./download-demos.sh
- name: Test
run: go test ./tests