fix: refactor and clean components #117
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: 'dhis2: verify (app)' | |
on: push | |
concurrency: | |
group: ${{ github.workflow}}-${{ github.ref }} | |
env: | |
GIT_AUTHOR_NAME: '@dhis2-bot' | |
GIT_AUTHOR_EMAIL: 'apps@dhis2.org' | |
GIT_COMMITTER_NAME: '@dhis2-bot' | |
GIT_COMMITTER_EMAIL: 'apps@dhis2.org' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- uses: c-hive/gha-yarn-cache@v1 | |
- run: yarn install --frozen-lockfile | |
# Can be removed if translations aren't required for tests, | |
# or if not using the App Platform | |
- name: Generate translations | |
run: yarn d2-app-scripts i18n generate | |
- name: Lint | |
run: yarn d2-style check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x | |
- uses: c-hive/gha-yarn-cache@v1 | |
- run: yarn install --frozen-lockfile | |
# Can be removed if translations aren't required for tests, | |
# or if not using the App Platform | |
- name: Generate translations | |
run: yarn d2-app-scripts i18n generate | |
- name: Test | |
run: yarn d2-app-scripts test |