Generate and validate a CSRF token for POST and PUT requests #110
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: CI | |
on: push | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
SHELL: bash | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: "25.0" | |
elixir-version: "1.14" | |
- name: Install Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git build-essential | |
- name: Setup elixir | |
run: | | |
mix deps.get | |
mix compile | |
env: | |
MIX_ENV: test | |
- name: Verify application | |
run: | | |
mix format --check-formatted | |
mix compile --force --warnings-as-errors | |
mix credo | |
mix test | |
env: | |
MIX_ENV: test |