mirror of
https://github.com/iden3/js-crypto.git
synced 2026-01-10 14:28:00 -05:00
37 lines
802 B
YAML
37 lines
802 B
YAML
name: Build, Lint and Test
|
|
on: push
|
|
jobs:
|
|
build:
|
|
timeout-minutes: 7
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 'lts/*'
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v4
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: cache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
|
|
- name: Run Prettier
|
|
run: npm run format:check
|
|
|
|
- name: Run ESLint
|
|
run: npm run lint:check
|
|
|
|
- name: Build
|
|
run: npm run build
|
|
|
|
- name: Run Tests
|
|
run: npm run test
|