Skip to content

Commit

Permalink
ci: clean pipelines configs
Browse files Browse the repository at this point in the history
  • Loading branch information
rozsival committed Oct 30, 2023
1 parent c924c3c commit 662d527
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 43 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/qa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install dependencies --frozen-lockfile
run: pnpm install
- name: Install dependencies
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build packages
run: pnpm run build
- name: Cache setup
Expand Down
49 changes: 8 additions & 41 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,6 @@ env:
CACHE_PATH: ./*

jobs:
setup:
runs-on: ubuntu-latest
strategy:
matrix:
node-version:
- 20.9.0
pnpm-version:
- 8.10.0
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm v${{ matrix.pnpm-version }}
uses: pnpm/action-setup@v2
with:
version: ${{ matrix.pnpm-version }}
- name: Setup node.js v${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build packages
run: pnpm run build
- name: Cache setup
uses: actions/cache@v3
id: cache-setup
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Set node-version
id: node-version
run: echo "node-version=${{ matrix.node-version }}" >> $GITHUB_OUTPUT
- name: Set pnpm-version
id: pnpm-version
run: echo "pnpm-version={{ matrix.pnpm-version }}" >> $GITHUB_OUTPUT
test:
needs: setup
runs-on: ubuntu-latest
Expand All @@ -59,17 +23,20 @@ jobs:
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: ${{ needs.setup.outputs.pnpm-version }}
version: 8.10.0
- name: Setup node.js
uses: actions/setup-node@v3
with:
cache: pnpm
node-version: ${{ needs.setup.outputs.node-version }}
- name: Restore setup
uses: actions/cache@v3
id: restore-setup
node-version: 20.9.0
- name: Cache
uses: actions/cache@v3p
with:
key: ${{ env.CACHE_KEY }}
path: ${{ env.CACHE_PATH }}
- name: Build
run: |
pnpm install --frozen-lockfile --prefer-offline
pnpm run build
- name: Run tests
run: pnpm run test

0 comments on commit 662d527

Please sign in to comment.