-
Notifications
You must be signed in to change notification settings - Fork 13
91 lines (91 loc) · 2.83 KB
/
Copy pathkeychain.yml
File metadata and controls
91 lines (91 loc) · 2.83 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Keychain
on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
paths:
- 'store/**'
jobs:
linux-keychain:
permissions:
id-token: write
contents: read
name: LinuxKeychainTests
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
subtest:
- fedora-43-gnome-keyring
- ubuntu-24-gnome-keyring
# disabled kdewallet tests since it prompts for a password in a
# headless environment... need to still fix this
# - fedora-43-kdewallet
# - ubuntu-24-kdewallet
env:
# Docker Hub credentials and the Docker Build Cloud builder are only
# available to same-repo events. Fork PRs run without secrets, so they
# fall back to a local buildx builder (slower, no shared cache).
IS_TRUSTED: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
steps:
- name: Checkout
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Hub login
if: env.IS_TRUSTED == 'true'
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
username: dockerpublicbot
password: ${{ secrets.DOCKERPUBLICBOT_WRITE_PAT }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
with:
driver: ${{ env.IS_TRUSTED == 'true' && 'cloud' || 'docker-container' }}
endpoint: ${{ env.IS_TRUSTED == 'true' && 'docker/secrets-engine' || '' }}
install: true
- name: Test
run: DOCKER_TARGET=${{ matrix.subtest }} make keychain-linux-ci-unit-tests
tests-windows:
permissions:
id-token: write
contents: read
name: WindowsKeychainTests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- windows-2022
- windows-2025
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: go.work
- name: Test keychain
run: make keychain-unit-tests
tests-macos:
permissions:
id-token: write
contents: read
name: MacOSKeychainTests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macOS-26
- macOS-15
- macOS-14
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- name: Setup Go
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5
with:
go-version-file: go.work
- name: Test keychain
run: make keychain-unit-tests