Create dependabot.yml #18
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
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: CI check | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
name: Build and deploy | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
with: | |
submodules: true | |
- name: Set SSH key | |
uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_KEY }} | |
- name: Add known host key | |
run: ssh-keyscan javacard.pro >> ~/.ssh/known_hosts | |
- name: Cache local Maven repository | |
uses: actions/[email protected] | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Setup java | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Compile and verify | |
run: ./mvnw -U -B -T1C verify | |
- name: Deploy snapshot | |
run: ./mvnw -B deploy |