Skip to content

Commit

Permalink
Refactor workflow for new console project (#3445)
Browse files Browse the repository at this point in the history
Signed-off-by: johnniang <johnniang@fastmail.com>
  • Loading branch information
JohnNiang committed Mar 2, 2023
1 parent 5956931 commit c43a810
Show file tree
Hide file tree
Showing 12 changed files with 44 additions and 799 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/halo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,21 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
console:
- 'console/**'
- name: Check code style
run: ./gradlew check -x test
- name: Setup console environment
if: steps.changes.outputs.console == 'true'
uses: halo-sigs/actions/admin-env-setup@main
- name: Check console
if: steps.changes.outputs.console == 'true'
run: make -C console lint

test:
runs-on: ubuntu-latest
steps:
Expand All @@ -47,10 +60,23 @@ jobs:
distribution: 'temurin'
cache: 'gradle'
java-version: 17
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
console:
- 'console/**'
- name: Run tests
run: ./gradlew test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
- name: Setup console environment
if: steps.changes.outputs.console == 'true'
uses: halo-sigs/actions/admin-env-setup@main
- name: Test console
if: steps.changes.outputs.console == 'true'
run: make -C console test

docker-build-and-push:
runs-on: ubuntu-latest
needs: test
Expand Down
1 change: 0 additions & 1 deletion console/.dockerignore

This file was deleted.

67 changes: 0 additions & 67 deletions console/.github/pull_request_template.md

This file was deleted.

38 changes: 0 additions & 38 deletions console/.github/workflows/main.yml

This file was deleted.

2 changes: 2 additions & 0 deletions console/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ coverage
*.njsproj
*.sln
*.sw?

!src/build
2 changes: 1 addition & 1 deletion console/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm exec lint-staged
cd console && pnpm exec lint-staged
4 changes: 0 additions & 4 deletions console/Dockerfile

This file was deleted.

0 comments on commit c43a810

Please sign in to comment.