Skip to content

chore: update coveralls badge #124

chore: update coveralls badge

chore: update coveralls badge #124

Workflow file for this run

# This is a basic workflow that is manually triggered
name: build-deploy
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
branches:
- master
pull_request:
branches:
- master
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# Build and deploy all the components
build-deploy:
name: Build-and-Deploy
runs-on: ubuntu-latest
steps:
# Get deploy code
- name: Checkout
uses: actions/checkout@v2
with:
# This is important for semantic-release to have access to the full history
fetch-depth: 0
- name: Get npm cache
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
# Build using the custom script (sam build + custom builds)
- name: Build
shell: bash
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm ci
npm run build
- name: Generate oclif artifacts
run: |
# Generate readme
npm run prepack
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add README.md
git commit -m "docs: update readme with oclif commands [skip ci]" || true
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
semantic_version: 19.0.5
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
conventional-changelog-eslint
branches: |
['master']
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: './coverage/lcov.info'