diff --git a/.github/actions/continuous-integration/load-cache/action.yml b/.github/actions/continuous-integration/load-cache/action.yml index d8fe3191..ada9bc76 100644 --- a/.github/actions/continuous-integration/load-cache/action.yml +++ b/.github/actions/continuous-integration/load-cache/action.yml @@ -18,3 +18,4 @@ runs: load: true tags: app_test:latest cache-from: type=gha + cache-to: type=gha,mode=min diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8ecc7fae..b814898d 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -10,32 +10,9 @@ on: - develop jobs: - build-and-cache: - name: Build and cache image - runs-on: ubuntu-latest - steps: - - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - - - name: Build and cache image - uses: docker/build-push-action@v6 - with: - context: . - file: ./Dockerfile - build-args: RAILS_ENV=test - push: false - tags: app_test:latest - cache-from: type=gha - cache-to: type=gha,mode=min - lint-and-format: name: Lint and format application runs-on: ubuntu-latest - needs: build-and-cache steps: - name: Checkout @@ -44,17 +21,25 @@ jobs: name: Load cache uses: ./.github/actions/continuous-integration/load-cache - - name: Run linters and formatters + name: Run Ruby standard + run: | + docker run --rm app_test:latest /bin/bash -c "bundle exec standardrb -f simple" + - + name: Run ESLint + run: | + docker run --rm app_test:latest /bin/bash -c "yarn run lint:js" + - + name: Run Stylelint + run: | + docker run --rm app_test:latest /bin/bash -c "yarn run lint:css" + - + name: Run Prettier run: | - docker run --rm app_test:latest /bin/bash -c "bundle exec standardrb -f simple && \ - yarn run lint:js && \ - yarn run lint:css && \ - yarn run lint:format" + docker run --rm app_test:latest /bin/bash -c "yarn run lint:format" static-analysis: name: Static analysis runs-on: ubuntu-latest - needs: build-and-cache steps: - name: Checkout @@ -70,7 +55,6 @@ jobs: specs: name: Specs and coverage runs-on: ubuntu-latest - needs: build-and-cache steps: - name: Checkout