This repository was archived by the owner on Feb 17, 2025. It is now read-only.
Nix init, move PR testing to Nix #90
Workflow file for this run
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: PR Testing | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- master | |
jobs: | |
handle-syncwith: | |
if: github.event_name == 'pull_request' | |
name: Call Reusable SyncWith Handler | |
uses: NilFoundation/ci-cd/.github/workflows/[email protected] | |
with: | |
ci-cd-ref: 'v1.1.2' | |
secrets: inherit | |
upload-event-file: | |
# Needed to link test results with PR workflow run | |
name: "Upload Event File" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ env.EVENT_FILE_ARTIFACT_NAME }} | |
path: ${{ github.event_path }} | |
matrix-test-linux: | |
name: Linux Crypto3 Testing | |
uses: ./.github/workflows/crypto3-testing-linux.yml | |
needs: | |
- upload-event-file | |
- handle-syncwith | |
if: | | |
always() && !cancelled() && | |
(needs.handle-syncwith.result == 'success' || needs.handle-syncwith.result == 'skipped') | |
secrets: inherit | |
with: | |
submodules-refs: | |
# TODO(martun): fix this sometime soon. All the targets must work on mac. | |
# matrix-test-mac: | |
# name: macOS Crypto3 Testing | |
# uses: ./.github/workflows/crypto3-testing-mac.yml | |
# needs: | |
# - upload-event-file | |
# - handle-syncwith | |
# if: | | |
# always() && !cancelled() && | |
# (needs.handle-syncwith.result == 'success' || needs.handle-syncwith.result == 'skipped') | |
# secrets: inherit |