Remove pnpm-lock. This project uses npm. #187
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: Node.js CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
workflow_call: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
node-version: [18.x, 20.x] | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
steps: | |
- uses: act10ns/slack@v1 | |
with: | |
status: starting | |
channel: '#opensource-cicd' | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install dependencies | |
run: npm install | |
- name: Lint | |
run: npm run lint | |
- run: npm run build | |
- name: Build finitio | |
run: npm run build | |
id: build | |
- name: Run unit tests | |
run: npm run test:unit | |
id: unit-tests | |
- name: Run integration tests | |
run: npm run test:integration | |
id: integration-tests | |
- name: Run acceptance tests | |
run: npm run test:acceptance | |
id: acceptance-tests | |
- uses: act10ns/slack@v1 | |
with: | |
status: ${{ job.status }} | |
steps: ${{ toJson(steps) }} | |
channel: '#opensource-cicd' | |
if: always() |