Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nitro-marky committed Aug 29, 2023
1 parent 91e4813 commit 18377b6
Show file tree
Hide file tree
Showing 5 changed files with 788 additions and 98 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ jobs:
run: npm run test:unit
- name: Run integration tests
run: npm run test

check-version:
name: 'Check version'
runs-on: ubuntu-latest
Expand All @@ -117,6 +118,7 @@ jobs:
version: ${{ steps.get_version.outputs.VERSION }}
build_date: ${{ steps.get_version.outputs.BUILD_DATE }}
is_prerelease: ${{ steps.get_version.outputs.IS_PRERELEASE }}

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,18 @@ jobs:
run: npm ci
- name: Dependency Check
run: npm run depcheck

check-version:
name: 'Check version'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- run: git fetch --depth=1 --tags origin
- name: Install yq
run: sudo snap install yq
- name: Check Build Version
- name: Check version
id: get_version
run: ./scripts/check-version.sh
shell: bash
- name: Error if version is not increased
shell: bash
run: |
exit $([[ "${{steps.get_version.outputs.IS_NEW_VERSION}}" = "true" ]] && echo 0 || echo 1)
uses: digicatapult/check-version@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

tests:
name: Run tests
runs-on: ubuntu-latest
Expand Down
Loading

0 comments on commit 18377b6

Please sign in to comment.