Optimise text_format:escape_label_value #87
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, pull_request] | |
jobs: | |
test: | |
name: CI | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
otp: [21.3, 22.3, 23.0.4, 23.2.7.0, 24.0, 25.2] | |
container: | |
image: erlang:${{ matrix.otp }}-alpine | |
steps: | |
- name: Prepare | |
run: | | |
apk update | |
apk --no-cache upgrade | |
apk --no-cache add gcc git libc-dev libc-utils libgcc linux-headers make bash curl tar | |
- uses: actions/checkout@v2 | |
- name: Install elvis | |
run: | | |
mkdir -p _build/elvis-build | |
cd _build/elvis-build | |
curl -L -o elvis.tar.gz https://github.com/inaka/elvis/archive/refs/tags/1.1.0.tar.gz | |
tar -x --strip-components=1 -z -f elvis.tar.gz | |
rebar3 escriptize | |
cp -v _build/default/bin/elvis .. | |
- name: Build | |
run: rebar3 compile | |
- name: Run tests | |
run: | | |
./_build/elvis rock --config elvis.config | |
rebar3 xref | |
rebar3 dialyzer | |
rebar3 eunit | |
- name: Coveralls | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
COVERALLS_FLAG_NAME: ${{ matrix.otp }} | |
run: DEBUG=1 rebar3 as test coveralls send | |
finish: | |
needs: test | |
runs-on: ubuntu-20.04 | |
if: always() | |
steps: | |
- name: Coveralls Finished | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
curl -v -k https://coveralls.io/webhook \ | |
--header "Content-Type: application/json" \ | |
--data "{\"repo_name\":\"$GITHUB_REPOSITORY\",\"repo_token\":\"$GITHUB_TOKEN\",\"payload\":{\"build_num\":$GITHUB_RUN_ID,\"status\":\"done\"}}" |