From ec461911f3a2c31cf76f6fc04fb0a1bae10057e6 Mon Sep 17 00:00:00 2001 From: Matt Straathof <11823378+bruuuuuuuce@users.noreply.github.com> Date: Wed, 24 Aug 2022 10:26:47 -0700 Subject: [PATCH] chore: use shared build workflow (#116) --- .github/workflows/ci.yaml | 5 +++++ .github/workflows/lint_pr.yml | 17 ----------------- 2 files changed, 5 insertions(+), 17 deletions(-) delete mode 100644 .github/workflows/lint_pr.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 703c54ff..54d94d76 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -22,6 +22,11 @@ jobs: with: dotnet-version: "6.0.x" + - name: Commitlint and Other Shared Build Steps + uses: momentohq/standards-and-practices/github-actions/shared-build@gh-actions-v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Build run: | dotnet build diff --git a/.github/workflows/lint_pr.yml b/.github/workflows/lint_pr.yml deleted file mode 100644 index 2a4a0179..00000000 --- a/.github/workflows/lint_pr.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: "Lint PR" - -on: - pull_request: - branches: [ main ] - -jobs: - main: - runs-on: ubuntu-latest - steps: - # Please look up the latest version from - # https://github.com/amannn/action-semantic-pull-request/releases - - uses: amannn/action-semantic-pull-request@v3.4.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - validateSingleCommit: true