Skip to content

Commit

Permalink
Merge pull request #380 from iclanton/github-ci
Browse files Browse the repository at this point in the history
Use GitHub CI.
  • Loading branch information
iclanton authored May 28, 2024
2 parents 7d9fa37 + a1672ae commit a0bfc37
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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:
strategy:
matrix:
include:
- NodeVersion: 16.20.x
NodeVersionDisplayName: 16
OS: ubuntu-latest
- NodeVersion: 18.18.x
NodeVersionDisplayName: 18
OS: ubuntu-latest
- NodeVersion: 20.9.x
NodeVersionDisplayName: 20
OS: ubuntu-latest
- NodeVersion: 18.18.x
NodeVersionDisplayName: 18
OS: windows-latest
name: Node.js v${{ matrix.NodeVersionDisplayName }} (${{ matrix.OS }})
runs-on: ${{ matrix.OS }}
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: ${{ matrix.NodeVersion }}

- 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 retest
run: node common/scripts/install-run-rush.js retest --verbose --production

0 comments on commit a0bfc37

Please sign in to comment.