CI #152
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
name: CI | |
on: | |
push: | |
pull_request: | |
branches: [master] | |
schedule: | |
- cron: '0 6 * * 6' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download source | |
uses: actions/checkout@v3 | |
- name: Install Nim | |
uses: jiro4989/setup-nim-action@23b5809a314afab9cacb55285d88ece6a35e38dc | |
- name: Install dependencies | |
run: nimble install -d -y | |
- name: Run tests | |
run: nimble test -y | |
- name: Check formatting | |
run: | | |
find . -name '*.nim' -exec nimpretty --indent:2 {} \; | |
git diff --exit-code |