Remove Auto Imports #220
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 - Build & Linting | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
concurrency: | |
group: ${{ github.head_ref || github.run_id }}-build-and-lint | |
cancel-in-progress: true | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build_and_lint: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- name: Read package.json | |
id: package | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: ./package.json | |
- name: Cache PNPM modules | |
uses: actions/cache@v4 | |
id: cache-modules | |
with: | |
path: | | |
~/.pnpm-store | |
node_modules | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: ${{ runner.os }}-node- | |
- uses: pnpm/action-setup@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
# use the version found in `.nvmrc` | |
node-version-file: '.nvmrc' | |
- name: Install `node_modules` | |
if: steps.cache-modules.outputs.cache-hit != 'true' | |
run: pnpm install | |
- name: Copy `.env.test` -> `.env` | |
run: cp .env.test .env | |
- name: Build the `.nuxt` directory | |
run: pnpm build | |
- name: Linting | |
run: pnpm run lint:prod | |
- name: Prettier | |
run: pnpm run prettier:check |