fix: delete deployment files, migrate npm to yarn & make lint pass in all packages #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Validate PR | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- reopened | |
- synchronize | |
jobs: | |
label: | |
name: Validate PR title | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: read | |
steps: | |
- uses: amannn/action-semantic-pull-request@v5 | |
with: | |
subjectPattern: ^(?![A-Z]).+$ | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
build: | |
name: Build and Test | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
issues: read | |
checks: write | |
pull-requests: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Lint | |
run: | | |
yarn run lerna run lint -- -- --no-fix --max-warnings 0 | |
- name: App type check | |
working-directory: ./packages/app | |
run: | | |
yarn run typecheck | |
- name: Test | |
run: | | |
yarn run test:ci | |
- name: Publish Test Results | |
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | |
if: always() | |
with: | |
files: | | |
packages/app/junit.xml | |
packages/api/junit.xml | |
packages/worker/junit.xml | |
packages/data-fetcher/junit.xml | |
check_run_annotations: all tests, skipped tests | |
report_individual_runs: "true" | |
check_name: Unit Test Results | |
- name: Build | |
run: | | |
yarn run build |