mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-06-03 10:55:20 +02:00
Update actions to run on Node20
Update GitHub Actions to versions using supported versions of NodeJS, see https://github.blog/changelog/2023-05-04-github-actions-all-actions-will-run-on-node16-instead-of-node12/ and https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/ Signed-off-by: Raphael Boidol <boidolr@users.noreply.github.com>
This commit is contained in:
parent
4bc9022afc
commit
f078367ac5
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
|
@ -10,21 +10,14 @@ jobs:
|
|||
fail-fast: false
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup python
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.x
|
||||
- name: test
|
||||
shell: bash
|
||||
run: |
|
||||
# setup-python puts `python` into the `PATH`, not `python3`, yet
|
||||
# `git-filter-repo` expects `python3` in the `PATH`. Let's add
|
||||
# a shim.
|
||||
printf '#!/bin/sh\n\nexec python "$@"\n' >python3 &&
|
||||
|
||||
export PATH=$PWD:$PATH &&
|
||||
|
||||
if ! t/run_tests -q -v -x
|
||||
then
|
||||
mkdir failed &&
|
||||
|
@ -33,7 +26,7 @@ jobs:
|
|||
fi
|
||||
- name: upload failed tests' directories
|
||||
if: failure()
|
||||
uses: actions/upload-artifact@v1
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: failed-${{ matrix.os }}
|
||||
path: failed
|
||||
|
|
Loading…
Reference in New Issue
Block a user