Api refactor #90
Workflow file for this run
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
on: | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
tests: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
nimversion: | |
- '2.x' | |
os: | |
- ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
path: "fig_ws/" | |
- name: Move | |
run: | | |
cd ../ | |
mv fig_ws/ figuro | |
mkdir fig_ws/ | |
mv figuro/ fig_ws/figuro | |
pwd | |
find . | grep -v .git | |
- uses: iffy/install-nim@v4 | |
with: | |
version: ${{ matrix.nimversion }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Install Atlas | |
run: | | |
nim -v | |
nimble -v | |
nimble install 'https://github.com/nim-lang/atlas@#head' | |
- name: Cache packages | |
uses: actions/cache@v3 | |
with: | |
path: vendor | |
key: ${{ runner.os }}-${{ hashFiles('figuro/atlas.lock') }} | |
- name: Install Deps | |
run: | | |
# new atlas workspace | |
atlas init --deps=vendor | |
# sync deps | |
atlas replay --cfgHere --ignoreUrls figuro/atlas.lock | |
- name: Test build From fig_ws/ | |
run: | | |
ls vendor/ | |
nim c figuro/tests/tclick.nim | |
- name: Build Tests | |
run: | | |
cd figuro/ | |
nim test |