Skip to content

import Security and CoreFoundation frameworks (#36) #189

import Security and CoreFoundation frameworks (#36)

import Security and CoreFoundation frameworks (#36) #189

Workflow file for this run

# 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