Skip to content

Commit

Permalink
Filtering workflow by path
Browse files Browse the repository at this point in the history
  • Loading branch information
diemol committed Jul 12, 2024
1 parent fbfe585 commit b25ac61
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .github/workflows/best-practice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,28 @@ on:
workflow_dispatch:
push:
branches: [ main ]
paths:
- '**/best-practice/**'
pull_request:
paths:
- '**/best-practice/**'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run tests
continue-on-error: true
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SCREENER_API_KEY: ${{ secrets.SCREENER_API_KEY }}
run: mvn test -pl best-practice
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Run tests
continue-on-error: true
env:
SAUCE_USERNAME: ${{ secrets.SAUCE_USERNAME }}
SAUCE_ACCESS_KEY: ${{ secrets.SAUCE_ACCESS_KEY }}
SCREENER_API_KEY: ${{ secrets.SCREENER_API_KEY }}
run: mvn test -pl best-practice

0 comments on commit b25ac61

Please sign in to comment.