chore(deps): bump braces from 3.0.2 to 3.0.3 in /ui #144
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: nodejs | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
paths: | |
- "ui/**" | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ui | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Node.js 14.x | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14.x | |
cache: "npm" | |
cache-dependency-path: ui/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Format | |
run: npm run format --if-present | |
- name: Commit changes if any | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "action@github.com" | |
if output=$(git status --porcelain) && [ ! -z "$output" ]; then | |
git commit -m "style: Automatic code formatting" -a | |
git push | |
fi | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
defaults: | |
run: | |
working-directory: ui | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Set up Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: ui/package-lock.json | |
- name: Install dependencies | |
run: npm ci | |
- name: Type-check | |
run: npm run type-check --if-present | |
- name: Lint | |
run: npm run lint --if-present | |
# vim: set et ts=2 sw=2: |