Skip to content

Commit

Permalink
ci(tests): more test faff
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispymm committed Sep 23, 2024
1 parent b82824f commit 77a045c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: [ main ]

env:
HUSKY: 0
GITHUB_DEPLOY_KEY: ${{ secrets.GH_DEPLOY_KEY }}
ECR_NAME: ${{ secrets.ECR_NAME }}
KUBE_CLUSTER: ${{ secrets.KUBE_CLUSTER }}
Expand Down Expand Up @@ -48,8 +49,14 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: npm install
run: npm install
- name: Run JS tests
run: npm run test:js
- uses: actions/download-artifact@v4
with:
name: mojds-package
path: package
- name: Test that sass can be compiled
run: npm run test:sass

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"/package"
],
"scripts": {
"prepare": "husky",
"prepare": "husky || true",
"build:docs": "gulp build:docs && eleventy --input=./docs --output=public",
"build:dist": "gulp build:dist",
"build:package": "gulp build:package",
Expand All @@ -15,8 +15,8 @@
"start": "npm-run-all --parallel watch:*",
"test": "npm-run-all --parallel test:*",
"test:docs": "npm run build:docs",
"test:js": "npm install && jest src/",
"test:sass": "npm install && sass -q -I . gulp/dist-scss/all.scss >/dev/null && echo 'ok'",
"test:js": "jest src/",
"test:sass": "sass -q -I . gulp/dist-scss/all.scss >/dev/null && echo 'ok'",
"watch:11ty": "ENV='dev' eleventy --input=./docs --output=public --serve",
"watch:package": "gulp watch:dev"
},
Expand Down

0 comments on commit 77a045c

Please sign in to comment.