Forgot innerJoin #170
Workflow file for this run
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: CI | |
on: push | |
jobs: | |
lintfix: | |
name: Lint and fix | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: π― Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: ποΈ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
- name: π¦ Setup pnpm - Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: π¦ Setup pnpm - Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: π¦ Setup pnpm - Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π Check if migrations are up to date | |
run: pnpm run db:generate | |
- name: π¨ Fail if new migrations are generated | |
uses: NathanielHill/fail-if-changes@master | |
- name: π¦ Run lint | |
run: pnpm lint --fix | |
- name: ποΈ Run format | |
run: pnpm format | |
- name: πΎ Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
message: 'chore: Auto-fix lint errors' | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} | |
test-integration: | |
name: Test integration | |
runs-on: ubuntu-latest | |
steps: | |
- name: π Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: π― Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: ποΈ Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvm.outputs.NVMRC }}' | |
- name: π¦ Setup pnpm - Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
run_install: false | |
- name: π¦ Setup pnpm - Get pnpm store directory | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
- name: π¦ Setup pnpm - Setup pnpm cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ env.STORE_PATH }} | |
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}-pnpm-store- | |
- name: π¦ Install dependencies | |
run: pnpm install | |
- name: π§ͺ Run test | |
run: pnpm test:integration |