-
Notifications
You must be signed in to change notification settings - Fork 47
34 lines (31 loc) · 930 Bytes
/
e2e-test.yml
File metadata and controls
34 lines (31 loc) · 930 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
name: Real Project Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
e2e-test:
name: e2e-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
submodules: 'true'
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: 'go.mod'
- name: Run tests
run: go test -v ./tests
env:
GITHUB_PAT: ${{ github.token }}
- name: Check if the snapshot is different
run: |
git diff --exit-code
if [ $? -eq 1 ]; then
echo "The snapshot is different"
exit 1
fi