Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Nix init, move PR testing to Nix #100

Nix init, move PR testing to Nix

Nix init, move PR testing to Nix #100

Workflow file for this run

name: PR Testing
on:
pull_request:
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
test-linux:
name: Linux Crypto3 Testing
uses: ./.github/workflows/crypto3-testing-linux.yml
needs:
- handle-syncwith
if: |
always() && !cancelled() &&
(needs.handle-syncwith.result == 'success' || needs.handle-syncwith.result == 'skipped')
secrets: inherit
with:
submodules-refs: ${{ needs.handle-syncwith.outputs.prs-refs }}
# TODO(martun): fix this sometime soon. All the targets must work on mac.
# 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
publish-result:
name: Publish Junit tests result
runs-on: ubuntu-22.04
needs:
- test-linux
# - test-mac
permissions:
checks: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
pattern: test-results-*
path: test-results
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/linux@v2
with:
files: "test-results/**/*.xml"
comment_mode: "off" # PRs from forks will not fail with insufficient permission