Rename release server -> update server #118
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: Build and Test | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- main | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: '1.18.1' | |
otp-version: '27.2' | |
- name: Restore dependencies cache | |
uses: actions/cache@v4 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install System Deps | |
run: | | |
wget https://github.com/fwup-home/fwup/releases/download/v1.12.0/fwup_1.12.0_amd64.deb | |
sudo dpkg -i fwup_1.12.0_amd64.deb | |
- name: Get dependencies and compile | |
run: | | |
mix deps.get | |
mix compile --warnings-as-errors | |
- name: Verify formatting | |
run: mix format --check-formatted | |
- name: Audit dependencies | |
run: mix hex.audit | |
- name: Run tests | |
run: mix test |