-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.19 KB
/
test.yml
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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
on: [push, pull_request]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Test
jobs:
test:
strategy:
fail-fast: false
matrix:
go-version: [1.22.x, 1.23.x]
macos-version: [macos-13, macos-14, macos-15]
runs-on: ${{ matrix.macos-version }}
steps:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v4
- name: Build CryptoKit.o
run: bash gen-swift-bindings.sh
- name: Run Go Tests
run: go test -gcflags=all=-d=checkptr -count 10 -v ./...
- name: Run Swift Tests
working-directory: cryptokit
run: swift test
santise:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Ensure PR does not contain CryptoKit.o
run: |
if git diff --name-only HEAD^ | grep -q internal/cryptokit/CryptoKit.o; then
echo "CryptoKit.o has been checked in. Please remove this from your PR."
exit 1
fi