Skip to content

Run changelog verification only for PRs #148

Run changelog verification only for PRs

Run changelog verification only for PRs #148

Workflow file for this run

name: Check

Check failure on line 1 in .github/workflows/check.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/check.yml

Invalid workflow file

(Line: 13, Col: 3): Unexpected value 'check', (Line: 19, Col: 14): Unrecognized named-value: 'github'. Located at position 1 within expression: github.event.pull_request.head.sha, (Line: 34, Col: 14): Unrecognized named-value: 'runner'. Located at position 1 within expression: runner.os, (Line: 1, Col: 1): Required property is missing: jobs
# Controls when the workflow will run
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
check:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
- name: Cache SBT
uses: actions/cache@v3
with:
path: |
~/.ivy2/cache
~/.sbt
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.sbt', 'project/**') }}
- name: sbt-header-check
run: sbt headerCheck
- name: sbt-scala-formatter-check
run: sbt scalafmtCheck scalafmtSbtCheck