Merge pull request #40 from microsoft/introduce-ci-pipeline
Introduce a CI pipeline.
This commit is contained in:
Коммит
d7fe48e4f8
|
@ -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
|
Загрузка…
Ссылка в новой задаче