diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9a7c981b..a0f0829d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,25 +1,39 @@ -name: CI +name: Build and Test Workflow on: push: - branches: "**" + branches: [ '**' ] + pull_request: + branches: [ '**' ] jobs: - ci: + build-and-test: runs-on: ubuntu-latest timeout-minutes: 8 + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 18 - cache: npm - cache-dependency-path: package-lock.json - - run: npm ci - - run: npm run lint - - run: npm run test - - run: npm run build - - run: npm run docs:code - env: - NODE_OPTIONS: --max-old-space-size=4096 - NO_COLOR: true + - uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + + - name: Install Dependencies + run: npm ci + + - name: Lint + run: npm run lint + + - name: Test + run: npm run test + + - name: Build + run: npm run build + + - name: Generate Documentation + run: npm run docs:code + env: + NODE_OPTIONS: --max-old-space-size=4096 + NO_COLOR: true