ci: run builds on pull requests #11
This file contains hidden or 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: Firebolt Test | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
env: | |
MODULAR_HOME: "/home/runner/.modular" | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Install magic | |
run: | | |
curl -ssL https://magic.modular.com/6b3752cd-debc-45dd-b249-5d4941e1c18c | bash | |
echo "/home/runner/.modular/bin:$PATH" >> $GITHUB_PATH | |
- name: checks | |
run: | | |
/home/runner/.modular/bin/magic run fmt | |
- name: tests | |
run: | | |
/home/runner/.modular/bin/magic run test | |