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