-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from microsoft/introduce-ci-pipeline
Introduce a CI pipeline.
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "[email protected]" | ||
- 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 |