Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: workflow enhancements and upgrade #19

Merged
merged 6 commits into from
Jun 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,19 @@ permissions:

jobs:
release-page:
if: contains(github.event.commit.message, 'chore(release):') || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Checkout
uses: actions/checkout@v4

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

- name: Dokka
run: ./gradlew dokkaHtml

Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
name: Build and test

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-e2e-tests
cancel-in-progress: true

on:
pull_request:
branches:
Expand All @@ -16,10 +12,10 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- name: Build and test
run: ./gradlew build
Expand All @@ -28,8 +24,7 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
build/test-results/**/*.xml
files: build/test-results/**/*.xml

- name: Publish Detekt Results
run: cat build/reports/detekt/detekt.md >> $GITHUB_STEP_SUMMARY
17 changes: 3 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,13 @@ jobs:
release-atala-automation:
name: "Release"
runs-on: ubuntu-latest
env:
ATALA_GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
uses: actions/checkout@v4

- name: Gradle Build Action
uses: gradle/gradle-build-action@v2.6.0
- name: Setup Gradle
uses: gradle/gradle-build-action@v3

- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
Expand Down
Loading
Loading