Skip to content

Commit

Permalink
feat(ci): remove unused Docker build step, fix pnpm setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Sep 16, 2024
1 parent c9bf222 commit ad82e5e
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,6 @@ permissions:
pull-requests: read

jobs:
docker:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
node: ['20.9.0']

name: "Docker: ${{ matrix.os }}"

env:
DOCKER_BUILDKIT: 1
COMPOSE_DOCKER_CLI_BUILD: 1
CI: 1

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Cache pnpm modules
uses: actions/cache@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-node-
- name: Build Docker pnpm image
run: docker buildx build -f Dockerfile.pnpm --build-arg NODE_VERSION="${{ matrix.node }}" ./packages -t pnpm

build:
runs-on: ${{ matrix.os }}

Expand All @@ -69,13 +38,10 @@ jobs:

- uses: actions/checkout@v4

- name: Cache pnpm modules
uses: actions/cache@v4
- uses: actions/setup-node@v4
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ matrix.node }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node }}-node-
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: pnpm i
Expand Down

0 comments on commit ad82e5e

Please sign in to comment.