Skip to content

Commit

Permalink
chore: simplify review and update build detection (#142)
Browse files Browse the repository at this point in the history
Because we now have e2e tests for macos, ubuntu, and windows, we dont need to lint on this anymore
  • Loading branch information
byCedric authored Jan 12, 2022
1 parent 414c169 commit ee415b0
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@ jobs:
strategy:
matrix:
node: [16.x]
os:
- macos-latest
- ubuntu-latest
- windows-latest
include:
- node: 16.x
os: ubuntu-latest
checkBuild: true
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2
Expand All @@ -47,8 +39,17 @@ jobs:
run: yarn build

- name: 🕵️ Validate code
if: ${{ matrix.checkBuild }}
id: diff
run: |
echo "⚠️ If this step fails, the build is outdated."
echo " > run 'yarn build' and commit changes"
git diff --stat --exit-code build
if [ "$(git diff --ignore-space-at-eol build/ | wc -l)" -gt "0" ]; then
echo "⚠️ Build is outdated, run `yarn build` and commit changes. Found:"
git diff
exit 1
fi
- name: 🗂 Uploading build
uses: actions/upload-artifact@v2
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: build
path: build/

0 comments on commit ee415b0

Please sign in to comment.