vuln(deps-dev): bump postcss from 8.4.21 to 8.4.31 #32
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 | |
permissions: | |
contents: read | |
id-token: write | |
on: | |
push: | |
branches: ['master'] | |
pull_request: | |
branches: ['master'] | |
# Allows to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Cache node modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: | | |
node_modules | |
~/.npm | |
key: ${{ runner.os }}-prepare-${{ env.cache-name }}-${{ github.sha }} | |
- name: Set Node v18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: npm | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
run: npm ci | |
test: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Use node modules cache | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: | | |
node_modules | |
~/.npm | |
key: ${{ runner.os }}-prepare-${{ env.cache-name }}-${{ github.sha }} | |
- name: Run tests | |
run: npm t | |
lint: | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Use node modules cache | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
path: | | |
node_modules | |
~/.npm | |
key: ${{ runner.os }}-prepare-${{ env.cache-name }}-${{ github.sha }} | |
- name: Run linter | |
run: npm run lint |