Skip to content

Commit

Permalink
Update test_suite.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelshot91 authored Oct 17, 2023
1 parent c4703d1 commit 7dd3d18
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@ on:
branches: [ "main" ]

jobs:
pre_job:
runs-on: self-hosted
# Map a step output to a job output
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- id: skip_check
uses: fkirc/skip-duplicate-actions@v5
with:
paths_ignore: '["README.md", "TODO.md", "doc/**"]'
rust_test:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: self-hosted
defaults:
run:
Expand All @@ -25,12 +37,11 @@ jobs:
run: cargo test

build_flutter:
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: self-hosted

steps:
- name: Skip Duplicate Actions
uses: fkirc/skip-duplicate-actions@v5.3.0

- uses: actions/checkout@v3
with:
submodules: 'true'
Expand Down

0 comments on commit 7dd3d18

Please sign in to comment.