Skip to content

feat(ping_route): fix tests and cleanup #146

feat(ping_route): fix tests and cleanup

feat(ping_route): fix tests and cleanup #146

Workflow file for this run

name: CICD
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unit tests
run: |
npm i
npm run test
build:
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/next' || github.ref == 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Merge master -> next
if: github.ref == 'refs/heads/master'
uses: devmasx/merge-branch@master
with:
type: now
from_branch: master
target_branch: next
github_token: ${{ secrets.TOKEN }}