chore: prepare for RC3 release #94
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: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
jobs: | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install Prettier | |
run: npm install --global prettier | |
- name: Run Prettier | |
run: prettier --check --no-error-on-unmatched-pattern "**/*.{json,md,yml,yaml}" | |
check: | |
name: Format/Credo | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: "1.17.2" | |
otp-version: "27.0.1" | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
with: | |
path: deps | |
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }} | |
restore-keys: ${{ runner.os }}-mix- | |
- name: Install dependencies | |
run: mix deps.get | |
- name: Run formatter | |
run: mix format --check-formatted | |
- name: Run Credo | |
run: mix credo | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Elixir | |
uses: erlef/setup-beam@v1 | |
with: | |
elixir-version: "1.17.2" | |
otp-version: "27.0.1" | |
- name: Restore dependencies cache | |
uses: actions/cache@v3 | |
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 | |
env: | |
ADM_OAUTH2_CLIENT_ID: ${{ secrets.ADM_OAUTH2_CLIENT_ID }} | |
ADM_OAUTH2_CLIENT_SECRET: ${{ secrets.ADM_OAUTH2_CLIENT_SECRET }} | |
APNS_AUTH_KEY_P8: ${{ secrets.APNS_AUTH_KEY_P8 }} | |
APNS_CERT: ${{ secrets.APNS_CERT }} | |
APNS_JWT_KEY_IDENTIFIER: ${{ secrets.APNS_JWT_KEY_IDENTIFIER }} | |
APNS_JWT_TEAM_ID: ${{ secrets.APNS_JWT_TEAM_ID }} | |
APNS_KEY_UNENCRYPTED: ${{ secrets.APNS_KEY_UNENCRYPTED }} | |
APNS_TOPIC: ${{ secrets.APNS_TOPIC }} | |
FCM_PROJECT: ${{ secrets.FCM_PROJECT }} | |
FCM_SERVICE_ACCOUNT_JSON: ${{ secrets.FCM_SERVICE_ACCOUNT_JSON }} | |
GCM_KEY: ${{ secrets.GCM_KEY }} | |
VALID_APNS_TOKEN: ${{ secrets.VALID_APNS_TOKEN }} | |
VALID_GCM_REG_ID: ${{ secrets.VALID_GCM_REG_ID }} | |
run: mix test |