Skip to content

Add IMEISV to NASREQ #441

Add IMEISV to NASREQ

Add IMEISV to NASREQ #441

Workflow file for this run

name: CI
on:
push:
pull_request:
branches: [ $default-branch ]
release:
types:
- created
workflow_dispatch:
jobs:
test:
name: CI
runs-on: ubuntu-latest
strategy:
matrix:
otp: [22.3, 23.3, 24.1, 25.1]
container:
image: quay.io/travelping/alpine-erlang:${{ matrix.otp }}
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 \
musl-dev musl-utils ncurses-dev pcre2 pkgconf scanelf wget zlib
- uses: actions/checkout@v3
- name: Build
run: rebar3 compile
- name: Run tests
run: |
rebar3 do xref
rebar3 do ct
- name: Coveralls
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.otp }}
run: DEBUG=1 rebar3 as test coveralls send || /bin/true
- name: Archive Test Output
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: test-output-${{ matrix.otp }}
path: |
_build/test/logs/
!_build/test/logs/last
slack:
needs: test
runs-on: ubuntu-20.04
if: always()
steps:
- name: Slack notification
uses: 8398a7/action-slack@v3
with:
author_name: "GitHub Actions"
username: ${{ github.event.repository.name }}
icon_emoji: ':octocat:'
fields: repo, message, ref, commit, author, action, eventName, workflow, job, took
status: ${{ needs.test.result }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
MATRIX_CONTEXT: ${{ toJson(matrix) }}
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\"}}"