Skip to content

Commit f659e81

Browse files
authored
Merge pull request DSpace#1948 from tdonohue/update_actions
Update to the latest version of all GitHub actions
2 parents 749e1a7 + 6d1d446 commit f659e81

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ jobs:
3232
steps:
3333
# https://github.com/actions/checkout
3434
- name: Checkout codebase
35-
uses: actions/checkout@v2
35+
uses: actions/checkout@v3
3636

3737
# https://github.com/actions/setup-node
3838
- name: Install Node.js ${{ matrix.node-version }}
39-
uses: actions/setup-node@v2
39+
uses: actions/setup-node@v3
4040
with:
4141
node-version: ${{ matrix.node-version }}
4242

@@ -61,7 +61,7 @@ jobs:
6161
id: yarn-cache-dir-path
6262
run: echo "::set-output name=dir::$(yarn cache dir)"
6363
- name: Cache Yarn dependencies
64-
uses: actions/cache@v2
64+
uses: actions/cache@v3
6565
with:
6666
# Cache entire Yarn cache directory (see previous step)
6767
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -88,7 +88,7 @@ jobs:
8888
# Upload coverage reports to Codecov (for one version of Node only)
8989
# https://github.com/codecov/codecov-action
9090
- name: Upload coverage to Codecov.io
91-
uses: codecov/codecov-action@v2
91+
uses: codecov/codecov-action@v3
9292
if: matrix.node-version == '16.x'
9393

9494
# Using docker-compose start backend using CI configuration
@@ -103,7 +103,7 @@ jobs:
103103
# https://github.com/cypress-io/github-action
104104
# (NOTE: to run these e2e tests locally, just use 'ng e2e')
105105
- name: Run e2e tests (integration tests)
106-
uses: cypress-io/github-action@v2
106+
uses: cypress-io/github-action@v4
107107
with:
108108
# Run tests in Chrome, headless mode
109109
browser: chrome
@@ -119,7 +119,7 @@ jobs:
119119
# Cypress always creates a video of all e2e tests (whether they succeeded or failed)
120120
# Save those in an Artifact
121121
- name: Upload e2e test videos to Artifacts
122-
uses: actions/upload-artifact@v2
122+
uses: actions/upload-artifact@v3
123123
if: always()
124124
with:
125125
name: e2e-test-videos
@@ -128,7 +128,7 @@ jobs:
128128
# If e2e tests fail, Cypress creates a screenshot of what happened
129129
# Save those in an Artifact
130130
- name: Upload e2e test failure screenshots to Artifacts
131-
uses: actions/upload-artifact@v2
131+
uses: actions/upload-artifact@v3
132132
if: failure()
133133
with:
134134
name: e2e-test-screenshots

.github/workflows/docker.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ jobs:
4242
steps:
4343
# https://github.com/actions/checkout
4444
- name: Checkout codebase
45-
uses: actions/checkout@v2
45+
uses: actions/checkout@v3
4646

4747
# https://github.com/docker/setup-buildx-action
4848
- name: Setup Docker Buildx
49-
uses: docker/setup-buildx-action@v1
49+
uses: docker/setup-buildx-action@v2
5050

5151
# https://github.com/docker/setup-qemu-action
5252
- name: Set up QEMU emulation to build for multiple architectures
@@ -56,7 +56,7 @@ jobs:
5656
- name: Login to DockerHub
5757
# Only login if not a PR, as PRs only trigger a Docker build and not a push
5858
if: github.event_name != 'pull_request'
59-
uses: docker/login-action@v1
59+
uses: docker/login-action@v2
6060
with:
6161
username: ${{ secrets.DOCKER_USERNAME }}
6262
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}
@@ -68,7 +68,7 @@ jobs:
6868
# Get Metadata for docker_build step below
6969
- name: Sync metadata (tags, labels) from GitHub to Docker for 'dspace-angular' image
7070
id: meta_build
71-
uses: docker/metadata-action@v3
71+
uses: docker/metadata-action@v4
7272
with:
7373
images: dspace/dspace-angular
7474
tags: ${{ env.IMAGE_TAGS }}
@@ -77,7 +77,7 @@ jobs:
7777
# https://github.com/docker/build-push-action
7878
- name: Build and push 'dspace-angular' image
7979
id: docker_build
80-
uses: docker/build-push-action@v2
80+
uses: docker/build-push-action@v3
8181
with:
8282
context: .
8383
file: ./Dockerfile

0 commit comments

Comments
 (0)