Styling changes #28
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
branches: | |
- main | |
- market | |
push: | |
branches: | |
- main | |
- market | |
jobs: | |
install: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Cache node_modules | |
uses: actions/cache@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install dependencies | |
run: npm ci | |
lint: | |
runs-on: ubuntu-latest | |
needs: | |
- install | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Restore Cache node_modules | |
uses: actions/cache/restore@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Run Lint | |
run: npm run lint | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- install | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Restore Cache node_modules | |
uses: actions/cache/restore@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Cache dist | |
uses: actions/cache@v4 | |
with: | |
path: 'libs/*/dist' | |
key: ${{ runner.os }}-dist-${{ hashFiles('libs/*/dist') }} | |
restore-keys: | | |
${{ runner.os }}-dist- | |
- name: Run Build | |
run: npm run build | |
test: | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Restore Cache node_modules | |
uses: actions/cache/restore@v4 | |
with: | |
path: '**/node_modules' | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
- name: Restore Cache dist | |
uses: actions/cache/restore@v4 | |
with: | |
path: 'libs/*/dist' | |
key: ${{ runner.os }}-dist-${{ hashFiles('libs/*/dist') }} | |
- name: Run CI Checks | |
run: npm run test |