Skip to content

Merge branch 'master' into dependabot/npm_and_yarn/decode-uri-compone… #128

Merge branch 'master' into dependabot/npm_and_yarn/decode-uri-compone…

Merge branch 'master' into dependabot/npm_and_yarn/decode-uri-compone… #128

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