Skip to content

Commit

Permalink
Adds more CI validations, introduces semantic release (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
ygrishajev committed Apr 16, 2024
1 parent e43fd60 commit 333f85a
Show file tree
Hide file tree
Showing 5 changed files with 115 additions and 47 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release from Master on Push

on:
- pull_request

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
HUSKY: 0

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: main

- name: Setup Node.js
if: steps.changes.outputs.ts == 'true'
uses: actions/setup-node@v4
with:
node-version: 18.0.0
cache: npm

- name: Install dependencies
run: npm install

- name: Lint commit messages
id: commitlint
uses: wagoid/commitlint-github-action@v6
with:
failOnErrors: 'false'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Create comment
if: commitlint.outputs.results > 0
uses: peter-evans/create-or-update-comment@v4
with:
body: |
commitlint.outputs.results
33 changes: 33 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on:
- pull_request

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
HUSKY: 0

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: main

- name: Setup Node.js
id: setup_node
uses: actions/setup-node@v4
with:
node-version: 18.0.0
cache: npm

- name: Install dependencies
if: steps.setup_node.outputs.cache-hit == 'false'
run: npm install

- name: Test
run: npm run lint
39 changes: 39 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Test

on:
- pull_request

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

env:
HUSKY: 0

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
with:
ref: main

- name: Setup Node.js
id: setup_node
uses: actions/setup-node@v4
with:
node-version: 18.0.0
cache: npm

- name: Install dependencies
if: steps.setup_node.outputs.cache-hit == 'false'
run: npm install

- name: Test
run: npm run test:cov

- name: Upload Test Coverage
uses: codecov/codecov-action@v4
with:
files: ./ts/coverage
token: ${{ secrets.CODECOV_TOKEN }}
46 changes: 0 additions & 46 deletions .github/workflows/validate.yml

This file was deleted.

1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

0 comments on commit 333f85a

Please sign in to comment.