Skip to content

Commit

Permalink
Upgrade GH actions to use Node20 features instead of 16
Browse files Browse the repository at this point in the history
GH Actions has deprecated the use of Node 16, since it has reached
the end of its lifetime. Consequently, the outdated actions should
be upgraded. In case of Grammarinator, the checkout, setup-java
and setup-python actions are needed to be updated
(v4 for checkout and setup-java and v5 for setup-python).
  • Loading branch information
renatahodovan committed Jun 3, 2024
1 parent d67addf commit b41c3ef
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- run: git config --global core.autocrlf input
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
Expand All @@ -27,10 +27,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11' # FIXME: experiencing SIGSEGV with py3.12.0
- run: pip install --upgrade tox
Expand All @@ -39,10 +39,10 @@ jobs:
cov:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install --upgrade tox coveralls
Expand All @@ -54,10 +54,10 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install --upgrade tox
Expand All @@ -67,10 +67,10 @@ jobs:
needs: [test, lint, docs]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install --upgrade tox
Expand Down

0 comments on commit b41c3ef

Please sign in to comment.