Skip to content

Commit

Permalink
Adds master yml
Browse files Browse the repository at this point in the history
  • Loading branch information
arch1995 committed Aug 8, 2023
1 parent 279100a commit 2bc24c5
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ jobs:
run: npm run build

- name: Run tests
run: npm run test
run: npm run test:ci
35 changes: 35 additions & 0 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Run tests

on:
push:
branches: [master]

name: Run Tests

jobs:
test:
name: run tests
strategy:
matrix:
node: ["20.x"]
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "npm"

- name: Install dependencies
run: npm install

- name: Run build
run: npm run build

- name: Run tests
run: npm run test:ci
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"build": "torus-scripts build",
"release": "torus-scripts release",
"test": "ECCRYPTO_NO_FALLBACK=1 mocha && karma start",
"test:ci": "ECCRYPTO_NO_FALLBACK=1 mocha",
"m": "mocha",
"k": "karma start",
"kc": "karma start --browsers Chromium",
Expand Down

0 comments on commit 2bc24c5

Please sign in to comment.