Skip to content

Merge pull request #24 from onebeyond/release-please--branches--maste… #10

Merge pull request #24 from onebeyond/release-please--branches--maste…

Merge pull request #24 from onebeyond/release-please--branches--maste… #10

Workflow file for this run

name: Node.js CI
on: [push]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 18.x, 20.x, 22.x]
steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
# disable-sudo: true
# allowed-endpoints: >
# github.com:443
# registry.npmjs.org:443
# api.github.com:443
# nodejs.org:443
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm test
# code-climate:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - name: 🔐 Harden Runner
# uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
# with:
# egress-policy: audit
# # disable-sudo: true
# # allowed-endpoints: >
# # github.com:443
# # registry.npmjs.org:443
# # api.github.com:443
# # nodejs.org:443
# - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# - uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
# with:
# node-version: '14.x'
# - run: npm ci
# - run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
# - run: chmod +x ./cc-test-reporter
# - run: ./cc-test-reporter before-build
# - run: npm run coverage
# - run: ./cc-test-reporter format-coverage -t lcov coverage/lcov.info
# - run: ./cc-test-reporter upload-coverage
# env:
# CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}