Skip to content

feat: add tests with workflow #1

feat: add tests with workflow

feat: add tests with workflow #1

Workflow file for this run

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 22
- name: Install dependencies
run: npm ci
working-directory: functions
- name: Check formatting
run: npm run format:check
working-directory: functions
- name: Build functions
run: npm run build
working-directory: functions
- name: Run tests
run: npx vitest run
working-directory: functions
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}