* Remove sourcemap comment * Bumped version and updated release notes * Updated CI to remove sourcemap comment * Fixed faulty command in action * Fixed fault command (again) * Fixed action * Update action * Action * Try 123512 * Try 123541 * Action? * Action * Better Action * Maybe? * Maybe * Please...
26 lines
774 B
YAML
26 lines
774 B
YAML
name: CI
|
|
on: pull_request
|
|
jobs:
|
|
Check_ESLint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run ESLint
|
|
run: |
|
|
npm install
|
|
npx eslint src
|
|
Check_main_file:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Check if CookieMonster.js is built correctly
|
|
run: |
|
|
npm install
|
|
npx webpack -o ./test --env production
|
|
if cmp <(head -n 2 dist/CookieMonster.js) <(head -n 2 test/CookieMonster.js); then
|
|
echo '### SUCCESS: CookieMonster is correctly built! ###'
|
|
else
|
|
echo '### WARNING: CookieMonster.js does not seem to be correct. Make sure to run "npm run build" after saving all your changes! ###'
|
|
exit 1
|
|
fi
|