Skip to content

Commit

Permalink
Check for updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Oct 25, 2023
1 parent 2889f3f commit 379f539
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Checks

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
registry-url: https://npm.pkg.github.com/
scope: "@weglot"

- name: Install dependencies
run: npm install

- name: Build dist folder
run: npm run build

- name: Check if the compilation is up to date
run: git add -N . && git diff --no-patch --exit-code
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
"grunt": "^1.5.3",
"grunt-contrib-uglify": "^4.0.1"
},
"scripts": {
"build": "grunt"
},
"repository": {
"type": "git",
"url": "https://github.com/weglot/brokkJS.git"
Expand Down

0 comments on commit 379f539

Please sign in to comment.