diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 92800e8..8c2a0e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,4 +30,4 @@ jobs: run: npm run build - name: Run tests - run: npm run test + run: npm run test:ci diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml new file mode 100644 index 0000000..8af8952 --- /dev/null +++ b/.github/workflows/master.yml @@ -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 diff --git a/package.json b/package.json index a21d394..98d1f06 100644 --- a/package.json +++ b/package.json @@ -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",