Skip to content

Commit

Permalink
Update tests and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Brocco committed Feb 27, 2024
1 parent babe458 commit cbe41c2
Show file tree
Hide file tree
Showing 24 changed files with 1,869 additions and 2,048 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/automerge.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: CI
on:
pull_request:
branches: ['main']
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/composite/verify
16 changes: 16 additions & 0 deletions .github/workflows/composite/verify/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: 'Verify'
description: 'Verifies the current branch'

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
shell: bash
- run: npm run build
shell: bash
- run: npm run test
shell: bash
43 changes: 0 additions & 43 deletions .github/workflows/failureNotifications.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/manualRelease.yml

This file was deleted.

23 changes: 0 additions & 23 deletions .github/workflows/notify-slack-on-pr-open.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/onPushToMain.yml

This file was deleted.

19 changes: 0 additions & 19 deletions .github/workflows/onRelease.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/workflows/composite/verify
- name: Set version from git tag
if: ${{ github.event_name != 'workflow_dispatch' }}
run: |
VERSION=$(echo ${GITHUB_REF#"refs/tags/v"})
echo "Setting version from tags to $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- run: npm version "$VERSION" --no-git-tag-version
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }}
9 changes: 0 additions & 9 deletions .github/workflows/test.yml

This file was deleted.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
dist
tmp
/out-tsc
hd-tracker

# dependencies
node_modules
Expand Down
Loading

0 comments on commit cbe41c2

Please sign in to comment.