Skip to content

Commit

Permalink
ci: add corepack step before node set up
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdyman committed Nov 12, 2022
1 parent 91f56aa commit 29153f3
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,29 @@ jobs:
CI: true

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- name: 🛒 Checkout repo
uses: actions/checkout@v3

# see https://github.com/actions/setup-node/issues/531
- name: 🤷 Force enable corepack
run: corepack enable

- name: 👷 Set up Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: Install Dependencies
- name: 📦 Install Dependencies
run: npm run bootstrap

- name: Build
- name: 🔨 Build
run: pnpm run build

- name: Test
- name: 🧪 Test
run: pnpm run test:ci

- name: Upload Test Coverage
- name: 🛫 Upload Test Coverage
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 29153f3

Please sign in to comment.