Skip to content

Commit

Permalink
Add seperate workflow for test and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
InvictusRMC committed Feb 20, 2024
1 parent d1aec30 commit 7fe1fff
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
test:
name: Run Tests
name: Run Checks
# TODO: Ubuntu currently broken.
runs-on: windows-latest
steps:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: build

on:
pull_request:
push:
branches: master

jobs:
test:
name: Run Tests and Lint
# TODO: Ubuntu currently broken.
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- uses: ./.github/actions/checkout_submodules

- name: Setup Java
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '17'

- name: Run tests
run: bash ./gradlew test

- name: Run lint
run: bash ./gradlew ktlintCheck

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
Empty file added peerai/consumer-rules.pro
Empty file.

0 comments on commit 7fe1fff

Please sign in to comment.