From c48ceef3b9cab14b8449b97ec04dbb337a1ec636 Mon Sep 17 00:00:00 2001 From: Ian Clanton-Thuon Date: Tue, 10 Sep 2024 12:40:47 -0700 Subject: [PATCH] Introduce a CI pipeline. --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..8339989 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI +on: + push: + branches: ['main'] + pull_request: + branches: ['main'] + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: +jobs: + build: + name: 'spfx-gulp-tools CI build' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 2 + + - name: Git config user + run: | + git config --local user.name "Rushbot" + git config --local user.email "rushbot@users.noreply.github.com" + + - uses: actions/setup-node@v3 + with: + node-version: 18.18.x + + - name: Verify Change Logs + run: node common/scripts/install-run-rush.js change --verify + + - name: Rush Install + run: node common/scripts/install-run-rush.js install + + - name: Rush Rebuild + run: node common/scripts/install-run-rush.js rebuild --verbose --production