Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

docs: sunset

docs: sunset #95

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# We need ${{github.event.pull_request.commits}} + 1 commits.
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Lint commit message(s)
run: |
yarn add @commitlint/cli
yarn add @commitlint/config-conventional
yarn run commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }}
test:
runs-on: ubuntu-latest
strategy:
matrix:
jdk:
- "17"
- "21"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.jdk }}
distribution: temurin
- uses: gradle/wrapper-validation-action@v3
- uses: gradle/gradle-build-action@v3
- name: Run tests
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./gradlew test jacocoTestReport coverallsJacoco