Skip to content

Commit

Permalink
Merge pull request #104 from wildpeaks/features/update-actions
Browse files Browse the repository at this point in the history
Update test
  • Loading branch information
cecilemuller authored Feb 28, 2021
2 parents e43ace0 + 26330c8 commit 58e05c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Build & Test
run: |
npm run build -- --version ${{ github.event.inputs.version }} --tag ${{ steps.deployment.outputs.tag }}
npm run test
npm run test:postbuild
- name: Create Release
id: release
Expand Down
33 changes: 12 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,23 @@
name: Tests
name: Test
on:
push:
branches:
- "**"
- main
- features/**
- dependabot/**
pull_request:
branches:
- master
- main
jobs:
tests:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Download sources
uses: actions/[email protected]

- name: Use Node LTS
uses: actions/[email protected]
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 12.x

- name: Install dependencies
run: npm install

- name: Lint sources
run: npm run lint

- name: Build the themes
run: npm run build

- name: Run tests
run: npm test
node-version: 14.x
- run: npm install --prefer-offline --no-fund --no-progress
- run: npm run lint
- run: npm run build
- run: npm run test:postbuild
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build": "mocha -r ts-node/register src/build.ts",
"watch": "mocha -r ts-node/register src/build.ts --watch --watch-files src/*",
"lint": "eslint src/**/*.ts",
"test": "mocha -r ts-node/register test/*.test.ts"
"test:postbuild": "mocha -r ts-node/register test/*.test.ts"
},
"devDependencies": {
"@types/mocha": "8.2.1",
Expand Down

0 comments on commit 58e05c5

Please sign in to comment.