-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 989 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 21
distribution: 'temurin'
cache: maven
server-id: github
server-username: 'MAVEN_USER'
server-password: 'MAVEN_PASSWORD'
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Lint
run: >-
npx @redocly/cli lint
- name: Maven build
run: >-
mvn clean verify
env:
GITHUB_TOKEN: ${{ github.token }}
MAVEN_USER: ${{ vars.MAVEN_USER }}
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@v4.0.0