mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 04:37:47 +08:00
52 lines
1.1 KiB
YAML
52 lines
1.1 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: |
|
|
python3 tests/check.py
|
|
|
|
## Compile and run test on linux.
|
|
linux-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run the Makefile.
|
|
run: |
|
|
make all
|
|
- name: Run tests.
|
|
run: |
|
|
python3 tests/tests.py
|
|
|
|
## Compile and run tests on windows.
|
|
windows-build:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run build batch script.
|
|
run: |
|
|
cmd /c build.bat
|
|
- name: Run tests.
|
|
run: |
|
|
python3 tests/tests.py
|
|
|
|
## Compile and run tests on macos.
|
|
macos-build:
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run the Makefile.
|
|
run: |
|
|
make all
|
|
- name: Run tests.
|
|
run: |
|
|
python3 tests/tests.py
|
|
|
|
|