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 and setup-python
actions needs to be updated (v4 for checkout and v5 for setup-python).
  • Loading branch information
renatahodovan committed Jun 3, 2024
1 parent d67addf commit 52d0459
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ 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
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 52d0459

Please sign in to comment.