Last active
August 21, 2023 13:06
-
-
Save woss/0379949969684dbdb592e0f26259a3fe to your computer and use it in GitHub Desktop.
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
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
name: 'ubuntu-latest / Node.js ${{ matrix.node-version }}' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
lfs: true | |
fetch-depth: 0 | |
# Restore build cache | |
- name: Restore build cache | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
common/temp | |
key: build_${{ runner.os }}_cache_${{ hashFiles('common/config/rush/pnpm-lock.yaml') }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# cache: 'pnpm' | |
- name: Is our code pretty? | |
run: node common/scripts/install-run-rush.js prettier:check | |
- 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 | |
env: | |
# Prevent time-based browserslist update warning | |
# See https://github.com/microsoft/rushstack/issues/2981 | |
BROWSERSLIST_IGNORE_OLD_DATA: 1 | |
RUSH_BUILD_CACHE_ENABLED: 1 | |
RUSH_BUILD_CACHE_WRITE_ALLOWED: 1 | |
# Save build cache | |
- name: Save build cache | |
uses: actions/cache/save@v3 | |
with: | |
path: | | |
common/temp | |
key: build_${{ runner.os }}_cache_${{ hashFiles('common/config/rush/pnpm-lock.yaml') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment