Skip to content

feat: adopt Zod based env parsing & commit schema #292

feat: adopt Zod based env parsing & commit schema

feat: adopt Zod based env parsing & commit schema #292

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
jobs:
test:
name: Lint and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
- name: Enable corepack
run: corepack enable
- uses: actions/cache@v4
id: yarn-cache
with:
path: ./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Run lint and unit tests
run: yarn lint && yarn test:unit
- name: Run integration tests
run: yarn test:integration
- name: Run mocked request tests
if: github.event_name == 'push' || github.event_name == 'release'
run: yarn test:unit
env:
MOCKED_REQUEST_TEST: ${{ secrets.MOCKED_REQUEST_TEST }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/coverage-final.json
fail_ci_if_error: true