Skip to content

Bump @babel/traverse from 7.20.10 to 7.23.4 (#27) #21

Bump @babel/traverse from 7.20.10 to 7.23.4 (#27)

Bump @babel/traverse from 7.20.10 to 7.23.4 (#27) #21

Workflow file for this run

name: Coverage
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [18.x, 16.x, 14.x]
database-type: [mysql8, 'mariadb1010']
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Start Database(s)
run: |
docker-compose \
--file "docker-compose.yml" \
up \
--detach \
--build \
"${{ matrix.database-type }}"
- name: Run npm install
run: npm install
- name: Initialize Database
run: |
docker-compose \
--file "docker-compose.yml" \
up \
"wait${{ matrix.database-type }}"
- name: Build and test
run: |
npm run build
npm run test:coverage
env:
CI: true
DB: ${{ matrix.database-type }}
- name: Code Coverage Report
uses: irongut/[email protected]
with:
filename: coverage/cobertura-coverage.xml
badge: false
fail_below_min: true
format: markdown
hide_branch_rate: false
hide_complexity: true
indicators: true
output: console
thresholds: '75 90'
- name: Upload coverage to Codecov
if: ${{ matrix.database-type == 'mysql8' && matrix.node-version == '18.x'}}
uses: codecov/codecov-action@v3
- name: Stop Database(s)
run: |
docker-compose \
--file "docker-compose.yml" \
down