Lint, Format, and Test #179
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: Lint, Format, and Test | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
env: | |
TEST_API_KEY: ${{ secrets.TEST_API_KEY }} | |
TEST_APP_ID: ${{ secrets.TEST_APP_ID }} | |
TEST_USER_ID: ${{ secrets.TEST_USER_ID }} | |
TEST_USER_IDENTIFIER: ${{ secrets.TEST_USER_IDENTIFIER }} | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Lint | |
run: npm run lint:ci | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Format | |
run: npm run format:ci | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Test | |
run: npm run test |