diff options
author | 2022-08-19 17:42:46 +0200 | |
---|---|---|
committer | 2022-08-19 17:42:46 +0200 | |
commit | a77a82f5a20ee49cf5ca764f7bbf789a7da44527 (patch) | |
tree | 0df3b9e191ca79f56def499570e492730c8d2d2a | |
parent | da17696293270005b1b7ec4aafc0df7496f602c7 (diff) | |
download | it-tools-a77a82f5a20ee49cf5ca764f7bbf789a7da44527.tar.gz it-tools-a77a82f5a20ee49cf5ca764f7bbf789a7da44527.tar.zst it-tools-a77a82f5a20ee49cf5ca764f7bbf789a7da44527.zip |
chore: updated ci workflow to handle pnpm
-rw-r--r-- | .github/workflows/ci.yml | 27 |
1 files changed, 8 insertions, 19 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3f7c8bd..73494b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,32 +7,21 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@master - with: - fetch-depth: 0 - - - name: Setup node env - uses: actions/setup-node@v3.0.0 + - uses: actions/checkout@v3 + - run: corepack enable + - uses: actions/setup-node@v3 with: node-version: 16 - - - name: Cache node_modules - uses: actions/cache@v2 - with: - path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.os }}-node- + cache: 'pnpm' - name: Install dependencies - run: npm ci + run: pnpm i - name: Run linters - run: npm run lint + run: pnpm lint - name: Run unit test - run: npm run test + run: pnpm test - name: Build the app - run: npm run build + run: pnpm build |