Skip to content

Commit

Permalink
test: remove mutation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
screendriver committed Jul 15, 2023
1 parent b705f68 commit f4f5df9
Show file tree
Hide file tree
Showing 4 changed files with 150 additions and 3,337 deletions.
166 changes: 82 additions & 84 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,87 +3,85 @@ name: CI
on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Berlin
- name: Run unit tests
run: npm run test:unit:coverage
env:
FORCE_COLOR: 1
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: target/coverage/coverage-final.json
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check source code
run: |
npm run lint
npm run copy:paste:detection
- name: Compile source code
run: npm run compile
- name: Upload compiled source code as artifact
uses: actions/upload-artifact@v3
with:
name: compiled-source-node-${{ matrix.node-version }}
path: target/src/
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Berlin
- name: Run integration tests
run: npm run test:integration
env:
FORCE_COLOR: 1
- name: Run mutation tests
run: npm run test:unit:mutation
release:
if: github.ref == 'refs/heads/main'
needs: [commitlint, code-coverage, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Download compiled source code artifact
uses: actions/download-artifact@v3
with:
name: compiled-source-node-18
path: target/src/
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
code-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js v18
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Berlin
- name: Run unit tests
run: npm run test:unit:coverage
env:
FORCE_COLOR: 1
- name: Upload code coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: target/coverage/coverage-final.json
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Use Node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Check source code
run: |
npm run lint
npm run copy:paste:detection
- name: Compile source code
run: npm run compile
- name: Upload compiled source code as artifact
uses: actions/upload-artifact@v3
with:
name: compiled-source-node-${{ matrix.node-version }}
path: target/src/
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: Europe/Berlin
- name: Run integration tests
run: npm run test:integration
env:
FORCE_COLOR: 1
release:
if: github.ref == 'refs/heads/main'
needs: [commitlint, code-coverage, build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Download compiled source code artifact
uses: actions/download-artifact@v3
with:
name: compiled-source-node-18
path: target/src/
- name: Semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading

0 comments on commit f4f5df9

Please sign in to comment.