Skip to content

Commit

Permalink
chore: remove skip-duplicate-actions (#690)
Browse files Browse the repository at this point in the history
* chore: remove skip-duplicate-actions

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Sep 27, 2021
1 parent 3a577ce commit 89b42c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 32 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/compatibility-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: Compatibility E2E Test
on:
push:
branches: [main, release-*]
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
pull_request:
branches: [main, release-*]
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]

env:
GO_VERSION: 1.15
Expand All @@ -17,28 +19,12 @@ env:
DRAGONFLY_FILE_SERVER_PATH: test/testdata/k8s/file-server.yaml

jobs:
skip_check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Skip Check
id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
paths_ignore: '["**.md", "**.png", "**.jpg", "**.svg", "**/docs/**"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'

compatibility_e2e_tests:
name: e2e_tests_with_${{ matrix.module }}
runs-on: ubuntu-latest
strategy:
matrix:
module: ["manager", "scheduler", "cdn", "dfdaemon"]
needs: skip_check
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down
18 changes: 2 additions & 16 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ name: E2E Test
on:
push:
branches: [main, release-*]
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]
pull_request:
branches: [main, release-*]
paths-ignore: [ '**.md', '**.png', '**.jpg', '**.svg', '**/docs/**' ]

env:
GO_VERSION: 1.15
Expand All @@ -16,24 +18,8 @@ env:
DRAGONFLY_FILE_SERVER_PATH: test/testdata/k8s/file-server.yaml

jobs:
skip_check:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip }}
steps:
- name: Skip Check
id: skip_check
uses: fkirc/skip-duplicate-actions@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
paths_ignore: '["**.md", "**.png", "**.jpg", "**.svg", "**/docs/**"]'
do_not_skip: '["push", "workflow_dispatch", "schedule"]'

e2e_tests:
runs-on: ubuntu-latest
needs: skip_check
if: ${{ needs.skip_check.outputs.should_skip != 'true' }}

steps:
- name: Checkout code
uses: actions/checkout@v2
Expand Down

0 comments on commit 89b42c4

Please sign in to comment.