Clean up workflows a little (#1211)

This commit is contained in:
Jon Koops 2021-09-24 15:47:36 +02:00 committed by GitHub
parent 668e20795b
commit 4d23bed065
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 40 deletions

24
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out Admin UI
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v2
with:
node-version: 16
check-latest: true
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build

View file

@ -1,33 +0,0 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
check-latest: true
cache: npm
- run: npm ci
- run: npm run lint
- run: npm run test
- run: npm run build

View file

@ -13,11 +13,18 @@ jobs:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
- name: Check out Admin UI
uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 11
distribution: adopt
check-latest: true
cache: maven
- name: Build and deploy Admin UI
- run: mvn --batch-mode deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}