-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade github actions to node 20 versions
- Loading branch information
1 parent
6098b43
commit cf514ea
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,22 +9,22 @@ jobs: | |
pre-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
# TODO: find a way to shallow clone precisely pr_base..pr_head; | ||
# wee need this context to do an adequate `darker` report. | ||
# as it stands this is wasteful. | ||
# assuming no PR has more than 50 commits. | ||
fetch-depth: 50 | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
- name: "Run pre-commit hooks for HEAD" | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].1 | ||
if: github.event_name != 'pull_request' | ||
- name: "Run pre-commit hooks for PR range" | ||
uses: pre-commit/[email protected].0 | ||
uses: pre-commit/[email protected].1 | ||
with: | ||
extra_args: > | ||
--from-ref=${{ github.event.pull_request.base.sha }} | ||
|
@@ -34,10 +34,10 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out pycroft and submodules | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- uses: actions/setup-python@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
|
@@ -63,7 +63,7 @@ jobs: | |
run: python ./scripts/render_sphinx_log.py doc/sphinx.log | ||
if: success() || steps.pip-install.conclusion == 'success' | ||
- name: Publish sphinx docs as pages artifact | ||
uses: actions/upload-pages-artifact@v1 | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: doc/_build/html | ||
# see https://github.com/actions/deploy-pages#usage | ||
|
@@ -85,12 +85,12 @@ jobs: | |
steps: | ||
- name: Deploy sphinx docs to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v1 | ||
uses: actions/deploy-pages@v4 | ||
npm-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
- run: npm ci | ||
|
@@ -103,11 +103,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
uses: docker/setup-buildx-action@v3 | ||
with: | ||
version: v0.10.0 | ||
- name: Fix permissions | ||
|
@@ -117,7 +117,7 @@ jobs: | |
- name: Build the Docker image | ||
run: docker buildx bake --file docker-compose.prod.yml --load | ||
- name: Login to GitLab Registry | ||
uses: docker/login-action@v1 | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: registry.agdsn.de | ||
username: "github-actions" | ||
|
@@ -130,7 +130,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: 'true' | ||
- name: Set up Docker Buildx | ||
|