Fix keyword lookups #15
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: Run CI Tests | |
on: | |
push: | |
branches: | |
- master | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
MIX_ENV: test | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
Git-Info: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get Branch Name | |
id: branch_name | |
run: | | |
echo "branch_name=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | |
- name: Get Commit Message | |
id: commit_message | |
run: | | |
echo "commit_message=$(git log --format=%B -n 1 --abbrev-commit HEAD --pretty=oneline)" >> $GITHUB_OUTPUT | |
outputs: | |
branch_name: ${{ steps.branch_name.outputs.branch_name }} | |
commit_message: ${{ steps.commit_message.outputs.commit_message }} | |
test: | |
runs-on: ubuntu-22.04 | |
needs: [Git-Info] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: add libtinfo5 | |
run: sudo apt-get install libtinfo5 | |
- name: Set up Elixir | |
uses: erlef/setup-elixir@885971a72ed1f9240973bd92ab57af8c1aa68f24 | |
with: | |
elixir-version: '1.14.2' # Define the elixir version [required] | |
otp-version: '25' # Define the OTP version [required] | |
- name: Restore dependencies cache | |
uses: actions/cache@v2 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run tests | |
run: mix test | |