Skip to content

Willking/automation docs #9

Willking/automation docs

Willking/automation docs #9

Workflow file for this run

name: πŸš€ Deploy
on:
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
actions: write
contents: read
jobs:
lint:
name: ⬣ ESLint
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
- name: πŸ”¬ Lint
run: npm run lint
typecheck:
name: Κ¦ TypeScript
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: βŽ” Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: πŸ“₯ Download deps
uses: bahmutov/npm-install@v1
- name: πŸ”Ž Type check
run: npm run typecheck --if-present
# vitest:
# name: ⚑ Vitest
# runs-on: ubuntu-latest
# steps:
# - name: ⬇️ Checkout repo
# uses: actions/checkout@v3
# - name: βŽ” Setup node
# uses: actions/setup-node@v3
# with:
# node-version: 18
# - name: πŸ“₯ Download deps
# uses: bahmutov/npm-install@v1
# - name: πŸ„ Copy test env vars
# run: cp .env.example .env
# - name: πŸ”„ Generate the API reference YAML
# run: npm run generate:platform-api-yaml
# - name: ⚑ Run vitest
# run: npm run test -- --coverage