run tests on linux #5211
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
# This file is part of the Fuzion language implementation. | |
# | |
# The Fuzion language implementation is free software: you can redistribute it | |
# and/or modify it under the terms of the GNU General Public License as published | |
# by the Free Software Foundation, version 3 of the License. | |
# | |
# The Fuzion language implementation is distributed in the hope that it will be | |
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty of | |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
# License for more details. | |
# | |
# You should have received a copy of the GNU General Public License along with The | |
# Fuzion language implementation. If not, see <https://www.gnu.org/licenses/>. | |
# ----------------------------------------------------------------------- | |
# | |
# Tokiwa Software GmbH, Germany | |
# | |
# GitHub Actions workflow to build and test Fuzion on Ubuntu. | |
# | |
# ----------------------------------------------------------------------- | |
name: run tests on linux | |
permissions: | |
contents: read | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * 0' # every sunday | |
env: | |
PRECONDITIONS: true | |
POSTCONDITIONS: true | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 | |
with: | |
distribution: 'temurin' | |
java-version: '21' | |
- name: install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libgc1 libgc-dev shellcheck asciidoc asciidoctor ruby-asciidoctor-pdf pcregrep antlr4 | |
- name: check shell scripts | |
run: make shellcheck | |
- name: build java code | |
run: make javac | |
- name: build (no java modules) | |
run: make no-java | |
- name: build docs | |
run: make doc | |
- name: run tests | |
run: make run_tests_parallel |