Skip to content

feat(ci): adds more CI validations, introduces semantic release (#74) #7

feat(ci): adds more CI validations, introduces semantic release (#74)

feat(ci): adds more CI validations, introduces semantic release (#74) #7

Workflow file for this run

name: Validate
on:
pull_request:
branches: [ main ]
env:
HUSKY: 0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.0.0
cache: npm
- name: Install dependencies
run: npm install
- name: Fetch other branches for commitlint
run: git fetch --prune --unshallow
- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: Validate code style
run: npm run lint
- name: Test
run: npm run test:cov
- name: Upload Test Coverage
uses: codecov/codecov-action@v4
with:
files: ./ts/coverage
token: ${{ secrets.CODECOV_TOKEN }}