Skip to content

Commit

Permalink
Upgrade GH actions to use Node 20 features instead of 16 (#229)
Browse files Browse the repository at this point in the history
GH Actions have 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 need to be updated
(v4 for checkout and setup-java, and v5 for setup-python).
  • Loading branch information
renatahodovan authored Jun 3, 2024
1 parent 1ef4f5c commit 240ce2b
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 240ce2b

Please sign in to comment.