Skip to content

Commit

Permalink
ci: update package versions GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
antonko committed Mar 29, 2024
1 parent 0fd2af2 commit cac8330
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 42 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v3

# - name: Login to DockerHub
# uses: docker/login-action@v1
Expand All @@ -93,7 +93,7 @@ jobs:
# password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
Expand Down
49 changes: 9 additions & 40 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,18 @@ on:
branches: [main]

jobs:
frontend-check:
docker-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Enable Corepack
run: corepack enable

- name: Install Yarn 2
run: yarn set version berry
working-directory: ./frontend

- name: Install dependencies
run: yarn install
working-directory: ./frontend

- name: Run linter
run: yarn run lint
working-directory: ./frontend

- name: Build
run: yarn run build
working-directory: ./frontend

backend-check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Setup PDM
uses: pdm-project/setup-pdm@v4

- name: Install dependencies
working-directory: ./backend
run: pdm install --dev

- name: Run linter
working-directory: ./backend
run: pdm run ruff .
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: false

0 comments on commit cac8330

Please sign in to comment.