Feat migrate to Nuxt3 #998
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: Run lint, test and build | ||
env: | ||
CI: true | ||
MONGO_INITDB_DATABASE: 'db' | ||
on: pull_request | ||
jobs: | ||
lint_and_test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'pnpm' | ||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: '4.0' | ||
mongodb-port: 27017 | ||
- name: Install dependencies | ||
run: pnpm install | ||
run: pnpm bootstrap | ||
- name: Lint | ||
run: pnpm lint:check | ||
- name: Test | ||
run: pnpm test | ||
- name: Build | ||
run: pnpm build |