Skip to content

Commit

Permalink
ci: update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGreatRefrigerator committed Aug 1, 2024
1 parent 419334d commit ddc7266
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: "Get Previous tag"
Expand Down Expand Up @@ -59,14 +59,14 @@ jobs:
echo ::set-output name=buildx_args_nightly::--platform ${DOCKER_PLATFORMS} \
${TAGS_NIGHTLY} .
- name: Checkout tag ${{ steps.previoustag.outputs.tag }}
uses: actions/checkout@v3
uses: actions/checkout@v4
if: ${{ steps.prepare.outputs.build_version == 'true' }}
with:
fetch-depth: 0
ref: ${{ steps.previoustag.outputs.tag }}
- name: Check file existence
id: check_files
uses: andstor/file-existence-action@v2
uses: andstor/file-existence-action@v3
with:
files: "Dockerfile"
- name: Build ${{ steps.previoustag.outputs.tag }} if not present and Dockerfile is present
Expand All @@ -77,7 +77,7 @@ jobs:
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args_version }}
docker buildx build --output "type=image,push=false" ${{ steps.prepare.outputs.buildx_args_latest }}
- name: Checkout main/master as nightly
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build nightly
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,20 @@ jobs:
- name: checkout
uses: actions/checkout@v3
- name: Set up Docker for hadolint-docker pre-commit
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Install Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install and run pre-commit
uses: pre-commit/[email protected].0
uses: pre-commit/[email protected].1
with:
extra_args: --all-files
Run-tests:
Expand All @@ -46,21 +46,21 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up default config files
run: cd src && cp config-examples/* config && for i in config/*-example.js; do mv -- "$i" "${i%-example.js}.js"; done
- name: Set up pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Cache PNPM and Cypress
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/Cypress
Expand All @@ -69,7 +69,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-cypress-store-
- name: Cypress install
uses: cypress-io/github-action@v4
uses: cypress-io/github-action@v6
with:
runTests: false
install-command: pnpm install --frozen-lockfile --silent
Expand Down

0 comments on commit ddc7266

Please sign in to comment.