pocketlang/.github/workflows/build.yml
Thakee Nathees 5f6f66517f Merge pull request #77 from ThakeeNathees/ci-workflow2
ci workflow script (build.yml) created [2/2]
2021-06-16 05:19:19 +05:30

59 lines
1.2 KiB
YAML

name: CI
on: [push, pull_request, workflow_dispatch]
jobs:
## Check for trailing white space, line width, tabs, etc.
style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run check.py script.
run: |
cd tests
python3 check.py
## Compile and run test on linux system.
linux-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run the Makefile.
run: |
cd build
make
- name: Run tests.
run: |
cd tests
python3 tests.py
## Compile and run tests on windows system.
windows-build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Run build batch script.
run: |
cd build
cmd /c build.bat
- name: Run tests.
run: |
cd tests
python tests.py
## Compile and run tests on macos system.
macos-build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Run the Makefile.
run: |
cd build
make
- name: Run tests.
run: |
cd tests
python3 tests.py