Skip to content

Merge pull request #14 from OpenG2P/1.0.0 #22

Merge pull request #14 from OpenG2P/1.0.0

Merge pull request #14 from OpenG2P/1.0.0 #22

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
workflow_dispatch:
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node and cache
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install node packages
run: npm ci
- name: Format and lint
run: |
{ npm run format && npm run lint ; } | tee /tmp/lint.log
if [ -n "$(grep -i 'Warning:' /tmp/lint.log)" ]; then
echo "::warning:: Encountered Warinings during linting. Check logs for more details."
fi