Skip to content

chore(CI): add initial github actions #1

chore(CI): add initial github actions

chore(CI): add initial github actions #1

Workflow file for this run

name: On Branch Update
on:
push:
branches:
- main
- '**'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Run unit tests with coverage
run: npm run test:cov
- name: Run e2e tests
run: npm run test:e2e
release:
name: Create Release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs:
- test
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release