| 1 |
name: Build and test |
| 2 |
on: [pull_request, push] |
| 3 |
|
| 4 |
jobs: |
| 5 |
build-n-test: |
| 6 |
name: Build and test |
| 7 |
runs-on: ubuntu-latest |
| 8 |
steps: |
| 9 |
|
| 10 |
- name: Checkout ada-toml |
| 11 |
uses: actions/checkout@v1 |
| 12 |
|
| 13 |
- name: Install GNAT Community 2020 |
| 14 |
uses: ada-actions/toolchain@ce2020 |
| 15 |
with: |
| 16 |
distrib: community |
| 17 |
|
| 18 |
- name: Build ada-toml |
| 19 |
run: gprbuild -Pada_toml -p -j0 |
| 20 |
|
| 21 |
- name: Build test programs |
| 22 |
run: gprbuild -Pcheckers -p -j0 |
| 23 |
|
| 24 |
- name: Install Python 3.x |
| 25 |
uses: actions/setup-python@v2 |
| 26 |
with: |
| 27 |
python-version: '3.x' |
| 28 |
|
| 29 |
- name: Install e3-testsuite |
| 30 |
run: pip install e3-testsuite |
| 31 |
|
| 32 |
- name: Run the testsuite |
| 33 |
run: ./run-tests.py |