tech: Fix CI workflow #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CI" | |
on: | |
push: | |
branches: | |
- 'legacy/**' | |
jobs: | |
test: | |
name: "Build & Test" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
concurrency: | |
group: pactswiftmockserver-${{ github.ref }} | |
cancel-in-progress: true | |
steps: | |
- uses: fwal/setup-swift@v1 | |
- name: "Check swift version" | |
run: swift --version | |
- name: "⬇️ Checkout repository" | |
uses: actions/checkout@v4 | |
- name: "Install Protoc" | |
uses: arduino/setup-protoc@v1 | |
- name: "♼ Cache rust binaries" | |
uses: actions/cache@v3 | |
with: | |
path: | | |
pact-reference | |
key: build-${{ runner.os }}-rust-bin-${{ hashFiles('**/libpact_ffi.version') }} | |
restore-keys: | | |
build-${{ runner.os }}-rust-bin | |
build-${{ runner.os }}-rust- | |
- name: "⚗️ Build and Test" | |
run: | | |
Support/build_test_linux |