[test] Fix GitHub Actions setup. #551
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: tests | |
on: | |
push: | |
paths-ignore: '**.md' | |
jobs: | |
c-cl-error: | |
runs-on: ubuntu-24.04 | |
steps: | |
- run: sudo apt install glib2.0-dev | |
- uses: actions/checkout@main | |
- run: make -j4 test-c test-cl test-error | |
cpp-java: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-java@main | |
with: | |
distribution: temurin | |
java-version: 21 | |
- uses: actions/checkout@main | |
- run: make -j4 test-cpp test-java | |
cs: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-dotnet@main | |
- uses: actions/checkout@main | |
- run: make -j4 test-cs | |
d: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: dlang-community/setup-dlang@v1 | |
with: | |
compiler: dmd-latest | |
- uses: actions/checkout@main | |
- run: make -j4 test-d | |
js-ts: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@main | |
- run: make -j4 test-js test-ts | |
py-swift: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: pfusik/setup-swift@gpg-www | |
- uses: actions/checkout@main | |
- run: make -j4 test-py test-swift | |
host-diff: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-java@main | |
with: | |
distribution: temurin | |
java-version: 21 | |
- uses: actions/setup-node@main | |
- uses: actions/checkout@main | |
- run: make -j4 host-diff | |
- run: make -j4 java/GenBase.java | |
- run: make -j4 host-diff-java | |
- run: make -j4 test-error FUT_HOST=cs | |
- run: rm test/bin/*/error.txt | |
- run: make -j4 test-error FUT_HOST=java | |
- run: rm test/bin/*/error.txt | |
- run: make -j4 test-error FUT_HOST=node | |
vscode: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/setup-node@main | |
- uses: actions/checkout@main | |
- run: make FUT_HOST=node | |
- run: make -C editors/vscode src/fucheck.js FUT_HOST=node | |
- run: cd editors/vscode && npm i && npx @vscode/vsce package |