Update sbt-release to 1.3.0 #1057
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: Frontend | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
pull_request_target: | |
branches: | |
- master | |
- develop | |
jobs: | |
build-frontend: | |
runs-on: ubuntu-latest | |
name: Build & test with Node 16 | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache Yarn | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install frontend dependencies | |
working-directory: ./frontend | |
run: yarn install | |
- name: Run frontend tests | |
working-directory: ./frontend | |
run: yarn run test:unit | |
eslint: | |
runs-on: ubuntu-latest | |
name: Lint with ESLint and Prettier | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- name: Cache Yarn | |
uses: actions/cache@v2 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- name: Install frontend dependencies | |
working-directory: ./frontend | |
run: yarn install | |
- name: Run linters | |
uses: wearerequired/lint-action@v2 | |
with: | |
# auto_fix: true | |
eslint: true | |
eslint_dir: ./frontend/src | |
eslint_extensions: ts,vue | |
prettier: true | |
prettier_dir: ./frontend/src |