-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (71 loc) · 2.25 KB
/
ci.yml
File metadata and controls
74 lines (71 loc) · 2.25 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
test-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup Keyring
run: |
sudo apt-get update
sudo apt-get install -y gnome-keyring
echo 'somecredstorepass' | gnome-keyring-daemon --unlock
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
- name: Core Tests
env:
GO_TEST_PARALLEL: "16"
run: mise run test:ci:core
test-integration:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [a, b, c]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup Keyring
run: |
sudo apt-get update
sudo apt-get install -y gnome-keyring
echo 'somecredstorepass' | gnome-keyring-daemon --unlock
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
- name: Integration Tests
env:
GO_TEST_PARALLEL: "16"
run: mise run test:ci:integration:shard -- ${{ matrix.shard }}
test-canary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- name: Setup Keyring
run: |
sudo apt-get update
sudo apt-get install -y gnome-keyring
echo 'somecredstorepass' | gnome-keyring-daemon --unlock
- uses: jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4
- name: E2E Canary
run: mise run test:e2e:canary
test:
runs-on: ubuntu-latest
needs:
- test-core
- test-integration
- test-canary
if: ${{ always() }}
steps:
- name: Check dependencies
run: |
[ "${{ needs.test-core.result }}" = "success" ]
[ "${{ needs.test-integration.result }}" = "success" ]
[ "${{ needs.test-canary.result }}" = "success" ]