japl/.github/workflows/main.yml

36 lines
944 B
YAML
Raw Permalink Normal View History

2021-02-26 13:56:56 +01:00
# Automatically runs tests
name: Run tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2.2.1
with:
# We test using a reasonably modern Python version
python-version: 3.8.0
architecture: x64
2021-02-26 15:17:37 +01:00
- name: Setup Nim environment
uses: jiro4989/setup-nim-action@v1.1.4
with:
nim-version: stable
2021-02-26 14:03:17 +01:00
- uses: actions/checkout@v2
2021-02-26 15:48:08 +01:00
- name: Setup dependencies
run: |
git clone https://github.com/japl-lang/jale --branch 0.1.0
cd jale
nimble install
2021-02-26 13:56:56 +01:00
- name: Run production-mode tests
2021-02-26 15:14:15 +01:00
run: ./build.py --profile resources/profiles/production.json src
2021-02-26 13:56:56 +01:00
- name: Run developmet tests
2021-02-26 15:14:15 +01:00
run: ./build.py --profile resources/profiles/production.json src