From 38c1528e0647711ecb443f70fb978b4a8c2a5756 Mon Sep 17 00:00:00 2001 From: Daniel Kuschny Date: Tue, 14 May 2024 18:43:20 +0200 Subject: [PATCH] feat: Improve PR development flow (#88) * build(deps): Bump alphaTab * fix: Wrong default value * build: Add PR pipeline * build: Add dependabot auto-approve --- .github/workflows/build-pr.yml | 21 +++++++++++++++++++++ .github/workflows/dependabot.yml | 17 +++++++++++++++++ docs/tutorial-android/track-selector.mdx | 2 +- package-lock.json | 6 +++--- 4 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/build-pr.yml create mode 100644 .github/workflows/dependabot.yml diff --git a/.github/workflows/build-pr.yml b/.github/workflows/build-pr.yml new file mode 100644 index 0000000..8a5a3f2 --- /dev/null +++ b/.github/workflows/build-pr.yml @@ -0,0 +1,21 @@ +name: Build PR +on: + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: lts/* + - run: npm install + - run: npm install @coderline/alphatab@alpha + - run: npm run build + - run: cp web.config ./build + - uses: actions/upload-artifact@v4 + with: + name: website + path: ./build/ diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml new file mode 100644 index 0000000..3d57bd1 --- /dev/null +++ b/.github/workflows/dependabot.yml @@ -0,0 +1,17 @@ +name: Dependabot auto-merge +on: pull_request + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{github.event.pull_request.html_url}} + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file diff --git a/docs/tutorial-android/track-selector.mdx b/docs/tutorial-android/track-selector.mdx index 4fb4852..ba7ecb1 100644 --- a/docs/tutorial-android/track-selector.mdx +++ b/docs/tutorial-android/track-selector.mdx @@ -92,7 +92,7 @@ For the sake of styling we add some styles to our code. This code should not act how to properly style controls in android but is rather a simplistic approach for this tutorial.