Skip to content

Commit

Permalink
ci: change to use save-state
Browse files Browse the repository at this point in the history
  • Loading branch information
kilee1230 committed Dec 23, 2023
1 parent 681ab61 commit ea8a44b
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
run: |
if [ "${{ github.event_name }}" == 'push' ] && [ "${{ github.repository }}" != "${{ github.actor }}/express-api-template" ]; then
echo "Stopping job because it's a repository creation event."
echo "::set-output name=result::failure"
echo "::save-state name=result::failure"
else
echo "Proceeding with the job."
echo "::set-output name=result::success"
echo "::save-state name=result::success"
fi
- name: Checkout code and Use Node.js
Expand All @@ -34,6 +34,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: yarn lint
- run: yarn test:coverage

- name: Install dependencies
if: ${{ needs.build.outputs.result == 'success' }}
run: yarn install

- name: Lint
if: ${{ needs.build.outputs.result == 'success' }}
run: yarn lint

- name: Test and Coverage
if: ${{ needs.build.outputs.result == 'success' }}
run: yarn test:coverage

0 comments on commit ea8a44b

Please sign in to comment.