Merge pull request #18 from OpenDTU-App/separate-translations #67
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: Continuous Integration | |
on: | |
push: | |
jobs: | |
test: | |
name: Run Tests | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
checks: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
- name: Cache node modules | |
uses: c-hive/gha-yarn-cache@v1 | |
- name: Install node modules | |
run: | | |
yarn install --frozen-lockfile --prefer-offline | |
- name: Run ESLint | |
run: | | |
yarn lint --max-warnings=0 | |
- name: Run tests | |
uses: willcaul/jest-github-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
test-command: "yarn test" |