-
Notifications
You must be signed in to change notification settings - Fork 46
44 lines (44 loc) · 1.16 KB
/
pods-test.yml
File metadata and controls
44 lines (44 loc) · 1.16 KB
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
name: Snapshot Tests
on: [push]
defaults:
run:
working-directory: framework/pods
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
permissions:
id-token: write
contents: read
runs-on: ${{ matrix.test.vm }}
strategy:
fail-fast: false
matrix:
test:
- test: test
vm: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: framework/go.mod
- name: Install dependencies
run: go mod download
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: go-modules-${{ hashFiles('go.sum') }}-${{ runner.os }}-test
restore-keys: |
go-modules-${{ runner.os }}-test
- uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2.0.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
just-version: '1.39.0'
- name: Run tests
run: |
just ${{ matrix.test.test }}