Unit tests for token #65
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
name: test | |
on: [push, pull_request] | |
env: | |
SCARB_VERSION: 0.5.2 | |
jobs: | |
build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Install scarb | |
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v $SCARB_VERSION | |
- name: Step 3 - Trying to build | |
run: scarb build | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Install scarb | |
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v $SCARB_VERSION | |
- name: Step 3 - Run tests | |
run: scarb test | |
check-format: | |
name: check-format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Step 1 - Check out main branch | |
uses: actions/checkout@v3 | |
- name: Step 2 - Install scarb | |
run: curl --proto '=https' --tlsv1.2 -sSf https://docs.swmansion.com/scarb/install.sh | sh -s -- -v $SCARB_VERSION | |
- name: Step 3 - Check format | |
run: scarb fmt --check | |