Skip to content

thusimon pre-merge actions #96

thusimon pre-merge actions

thusimon pre-merge actions #96

name: pre-merge-actions
run-name: ${{ github.actor }} pre-merge actions
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
maven-test:
name: maven-test
if: ${{ !startsWith(github.event.pull_request.head.ref, 'qdev-') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'corretto'
cache: maven
- name: Test with Maven
run: mvn --batch-mode --update-snapshots test
ui-lint:
name: ui-lint
if: ${{ !startsWith(github.event.pull_request.head.ref, 'qdev-') }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web-client
steps:
- uses: actions/checkout@v3
- name: Set up node 16.17.1
uses: actions/setup-node@v3
with:
node-version: '16.17.1'
cache: 'yarn'
cache-dependency-path: './web-client/yarn.lock'
- name: Install modules
run: yarn install --frozen-lockfile
- name: Run eslint
run: yarn lint
ui-unit-test:
name: ui-unit-test
if: ${{ !startsWith(github.event.pull_request.head.ref, 'qdev-') }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./web-client
steps:
- uses: actions/checkout@v3
- name: Set up node 16.17.1
uses: actions/setup-node@v3
with:
node-version: '16.17.1'
cache: 'yarn'
cache-dependency-path: './web-client/yarn.lock'
- name: Install modules
run: yarn install --frozen-lockfile
- name: Run test
run: yarn test