feat: 🎸 update to 6.0 #1084
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: [master, alpha] | |
pull_request: | |
types: [assigned, opened, synchronize, reopened] | |
jobs: | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: lint | |
run: yarn lint | |
build: | |
name: Building | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: build | |
run: yarn build | |
test: | |
name: Testing | |
runs-on: ubuntu-latest | |
env: | |
CI: true | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: test | |
run: yarn test:cov | |
release: | |
name: Building and releasing project | |
runs-on: ubuntu-latest | |
needs: [lint, build, test] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
cache: 'yarn' | |
- name: install dependencies | |
run: yarn --frozen-lockfile | |
- name: release | |
env: | |
GH_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
run: yarn semantic-release | |
# TODO @polymath-eric: add SonarCloud step when the account confusion is sorted |