forked from boswelja/kotlinx-benchmark-table-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 remote-tracking branch 'upstream/main'
- Loading branch information
Showing
2 changed files
with
39 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: PR Validation | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the "master" branch | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
# Set up NPM and deps | ||
- name: Set up NPM | ||
run: npm ci | ||
|
||
# Do a build | ||
- name: Run Build | ||
run: npm run build | ||
|
||
# Check whether the compiled library changed | ||
- name: Check Build Updated | ||
uses: tj-actions/verify-changed-files@v19 | ||
id: verify-built-lib | ||
with: | ||
files: dist/index.js | ||
|
||
# If it did change, the authro forgot to build. Fail the action | ||
- name: Verify Build Updated | ||
if: steps.verify-changed-files.outputs.files_changed == 'true' | ||
run: exit 1 |
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