Skip to content

Commit

Permalink
Merge pull request #74 from amosproj/Feature/44-improve-github-ci-wor…
Browse files Browse the repository at this point in the history
…kflow

Feature/44 improve GitHub ci workflow
  • Loading branch information
lheimbs authored Nov 27, 2023
2 parents af2ed67 + 40b9511 commit ccc6bf4
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 32 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# SPDX-FileCopyrightText: 2023 Lennart Heimbs <[email protected]>
#
# SPDX-License-Identifier: MIT

---
name: Build and Test

on: pull_request

jobs:
build-and-test:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Build with Gradle
run: ./gradlew build --no-daemon
working-directory: 'pitmutationmate'

- name: Run Tests
run: ./gradlew test --no-daemon
working-directory: 'pitmutationmate'

34 changes: 34 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# SPDX-FileCopyrightText: 2023 Lennart Heimbs <[email protected]>
#
# SPDX-License-Identifier: MIT

---
name: ktlint

on:
pull_request:

jobs:
lint:
runs-on: ubuntu-latest

permissions:
contents: read
packages: read
statuses: write

steps:
- name: "checkout"
uses: actions/checkout@v4
with:
# Full git history is needed to get a proper
# list of changed files within `super-linter`
fetch-depth: 0

- name: Lint Code Base
uses: super-linter/super-linter/slim@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

32 changes: 0 additions & 32 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit ccc6bf4

Please sign in to comment.