Skip to content

refactor: move ynab interfaces into declaration file #176

refactor: move ynab interfaces into declaration file

refactor: move ynab interfaces into declaration file #176

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Build Packages
run: pnpm run build
shell: bash
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Run unit tests
run: pnpm run test:ci
shell: bash
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
fail_ci_if_error: true
files: coverage/cobertura-coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
e2e:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Run e2e tests
uses: cypress-io/github-action@v6
with:
browser: chrome
start: pnpm start
# Record the test in Cypress Cloud
record: true
env:
CYPRESS_AUTH_TOKEN: ${{ secrets.AUTH_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install node, pnpm, and dependencies
uses: ./.github/actions/install-dependencies
- name: Lint Packages
run: pnpm run lint
shell: bash