Skip to content

Commit

Permalink
Merge pull request Wilfred#381 from eed3si9n/wip/github-actions
Browse files Browse the repository at this point in the history
Update GitHub Actions and Node
  • Loading branch information
ckipp01 authored Mar 11, 2024
2 parents 3007ed5 + 4eb5a61 commit 71ee31c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ on:
- master
jobs:
changedfiles:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
all: ${{ steps.changes.outputs.all}}
c: ${{ steps.changes.outputs.c }}
gen: ${{ steps.changes.outputs.gen }}
steps:
- name: checkout tree-sitter-scala
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 10

Expand All @@ -30,39 +30,39 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: checkout tree-sitter-scala
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 10

- name: checkout scala/scala
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: scala/scala
ref: v2.13.10
path: scala_scala

- name: checkout lampepfl/dotty
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: lampepfl/dotty
ref: 3.3.0
path: dotty

- name: checkout nvim-treesitter/nvim-treesitter
if: ${{ runner.os == 'Linux' }}
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: nvim-treesitter/nvim-treesitter
path: nvim_treesitter

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Test C stack code
run: gcc test/test-stack.c -o a.out && ./a.out
Expand Down Expand Up @@ -102,7 +102,7 @@ jobs:

- name: Check if queries are out of sync with nvim-treesitter
if: ${{ runner.os == 'Linux' }}
uses: tj-actions/verify-changed-files@v17
uses: tj-actions/verify-changed-files@v19
id: verify-changed-files
with:
files: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Parser fuzzing
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@4
- uses: vigoux/tree-sitter-fuzz-action@v1
with:
language: scala
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ on:

jobs:
check-and-sync:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
all: ${{ steps.changes.outputs.all}}
c: ${{ steps.changes.outputs.c }}
steps:
- name: checkout tree-sitter-scala
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 10

Expand All @@ -27,7 +27,7 @@ jobs:
npm run format
- name: Check for changes
uses: tj-actions/verify-changed-files@v17
uses: tj-actions/verify-changed-files@v19
id: verify-changed-files
with:
files: |
Expand Down

0 comments on commit 71ee31c

Please sign in to comment.