forked from jwgmeligmeyling/checkstyle-github-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #32 from lcollins/lcollins-patch-1
Update test.yml
- Loading branch information
Showing
1 changed file
with
29 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,42 @@ | ||
name: "build-test" | ||
on: # rebuild any PRs and main branch changes | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- 'releases/*' | ||
- release/* | ||
- releases/* | ||
pull_request: | ||
branches: | ||
- main | ||
- master | ||
- release/* | ||
- releases/* | ||
|
||
permissions: | ||
security-events: write | ||
actions: write | ||
checks: write | ||
deployments: write | ||
id-token: write | ||
discussions: write | ||
pull-requests: write | ||
statuses: write | ||
|
||
jobs: | ||
build: # make sure build/ci work properly | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
npm install | ||
- run: | | ||
npm run all | ||
- uses: actions/checkout@v4 | ||
- run: | | ||
npm install | ||
- run: | | ||
npm run all | ||
test: # make sure the action works on a clean machine without building | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ./ | ||
with: | ||
path: '**/checkstyle-result.xml' | ||
- uses: actions/checkout@v4 | ||
- uses: ./ | ||
with: | ||
path: '**/checkstyle-result.xml' |