Skip to content

Commit

Permalink
Some workflow improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
zijchen committed Dec 6, 2023
1 parent 8854611 commit 4d5972a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/check-lib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
- name: Check out
uses: actions/checkout@v3

- name: Copy the committed main.js file
run: mv lib/main.js /tmp

- name: Validate build
run: |
npm install
npm run build
- name: Check if main.js has differences
run: git diff --exit-code lib/main.js
run: git diff --ignore-all-space --exit-code lib/main.js /tmp/main.js
id: diff

# If main.js was different than expected, upload the actual version
Expand All @@ -24,4 +27,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: main.js
path: lib/index.js
path: lib/main.js
1 change: 1 addition & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
deploy:
environment: Automation test # this environment requires approval before running the action
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [windows-latest, ubuntu-latest]
Expand Down

0 comments on commit 4d5972a

Please sign in to comment.