chore: update node version #2112
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
name: Run Checks | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- $default-branch | |
jobs: | |
install_dependencies: | |
name: Install Dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- name: Install missing packages | |
run: npm install @moonrepo/core-linux-x64-gnu --save-dev | |
- name: Install dependencies by lockfile | |
run: npm clean-install | |
- name: Cache workspace | |
uses: actions/cache@v4 | |
with: | |
key: 'workspace:${{github.sha}}' | |
path: ./ | |
static_files: | |
name: Build Static Files And Run Checks | |
runs-on: ubuntu-latest | |
needs: [install_dependencies] | |
steps: | |
- name: Download cached workspace | |
uses: actions/cache@v4 | |
with: | |
key: 'workspace:${{github.sha}}' | |
path: ./ | |
- name: Download moon cache | |
uses: actions/cache@v4 | |
with: | |
key: 'moon' | |
path: ./.moon/cache | |
- name: Build static files with checks | |
run: npm run moon ci | |
- name: Generate report | |
uses: moonrepo/run-report-action@v1 | |
if: success() || failure() | |
with: | |
access-token: ${{ secrets.GITHUB_TOKEN }} |