Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,14 @@ on:
schedule:
- cron: '0 0 * * 0' # https://crontab.guru/every-week

permissions:
contents: read

jobs:
build:
permissions:
contents: read
actions: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
Expand All @@ -26,6 +32,10 @@ jobs:
key: reassure-baseline-${{ github.sha }}

performance:
permissions:
contents: read
actions: read
issues: write
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
Expand Down Expand Up @@ -57,6 +67,8 @@ jobs:

test:
needs: build
permissions:
contents: read
runs-on: ${{ matrix.os }}
outputs:
rn-version: ${{ steps.rn-version.outputs.value }}
Expand Down Expand Up @@ -107,9 +119,12 @@ jobs:
working-directory: react-native-hcaptcha-example

create-an-issue:
permissions:
contents: read
issues: write
runs-on: ubuntu-latest
needs: test
if: always() && github.event == 'schedule' && needs.test.result == 'failure'
if: always() && github.event_name == 'schedule' && needs.test.result == 'failure'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- run: |
Expand All @@ -126,6 +141,8 @@ jobs:
filename: .github/examples-issue-template.md

release:
permissions:
contents: read
if: github.event_name == 'release'
needs: test
runs-on: ubuntu-latest
Expand Down
Loading