Configure Sweep #131
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: Pre-merge | |
on: | |
push: | |
branches: | |
- 'release-temp/**' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm ci --legacy-peer-deps | |
- run: npm run lint -- --no-fix | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm ci --legacy-peer-deps | |
- run: npm run test:coverage | |
# Validate that commits are following the conventional commit format | |
commit-validate: | |
# Don't run for dependabot updates | |
if: contains(github.head_ref, 'dependabot/') == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: install dependencies | |
run: npm ci --legacy-peer-deps | |
- name: lint commits | |
run: npx commitlint --from origin/main | |
version-dry-run: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: bump version dry run | |
run: npx standard-version --dry-run |