Skip to content

Commit

Permalink
build and test on release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deej-io committed Sep 2, 2024
1 parent e0b76c0 commit 5567da4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,51 @@ on:
- v*

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "NPM Install, Build, and Cache"
id: npm-install-build-and-cache
uses: ./.github/actions/npm-install-build-and-cache

test:
name: Test and Lint
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false

- name: "Retrieve Dependencies and Build Artifacts"
id: retrieve-deps-and-build
uses: ./.github/actions/retrieve-deps-and-build

- name: Test
run: npm run test

summary:
name: Summary
needs: [build, test]
runs-on: ubuntu-latest
steps:
- name: Summary
run: |
echo "Build: ${{ needs.build.result }}"
echo "Test/Lint: ${{ needs.test.result }}"
publish-release-packages:
name: Publish Packages
environment: package-release
runs-on: ubuntu-latest
needs: [summary]
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down

0 comments on commit 5567da4

Please sign in to comment.