moar docs #73
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 | |
jobs: | |
test: | |
name: Build and run tests | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout project | |
uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
otp-version: '25.1' # Define the OTP version [required] | |
elixir-version: '1.14.0' # Define the elixir version [required] | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: live_state/deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- uses: actions/cache@v1 | |
name: Cache build | |
with: | |
path: live_state/_build | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run elixir tests | |
run: mix test | |
- name: Repository Dispatch | |
uses: peter-evans/repository-dispatch@v2 | |
with: | |
event-type: run-integration-tests | |
repository: "launchscout/live_state_testbed" | |
token: ${{ secrets.TESTBED_PAT}} |