Merge pull request #1886 from d3fc/changeset-release/master #2
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: Development | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
workflow_call: | |
jobs: | |
build-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Setup Node" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.0 | |
- name: "Install dependencies" | |
run: npm ci | |
- name: "Build" | |
run: | | |
npm run bundle | |
npm run bundle-min | |
- name: "Run tests" | |
run: npm test | |
lint: | |
name: Code standards | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout repository" | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: "Setup Node" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.0 | |
- name: "Install dependencies" | |
run: npm ci | |
- name: "Lint code" | |
run: npm run lint | |
- name: "Lint commit" | |
run: npm run commitlint |