Skip to content

Commit

Permalink
ci: fix cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
kilee1230 committed Dec 23, 2023
1 parent 9d7ba36 commit d0918e4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,33 @@ jobs:

steps:
- name: Check if it's a repository creation event
id: set-status
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 "skip_ci=true" >> $GITHUB_OUTPUT
echo "skip_ci=true" >> skip_ci
else
echo "Proceeding with the job."
echo "skip_ci=false" >> $GITHUB_OUTPUT
echo "skip_ci=false" >> skip_ci
fi
- name: Checkout code and Use Node.js
if: ${{ $GITHUB_OUTPUT == "false" }}
if: ${{ skip_ci == "false" }}
uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
if: ${{ $GITHUB_OUTPUT == "false" }}
if: ${{ skip_ci == "false" }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
if: ${{ $GITHUB_OUTPUT == "false" }}
if: ${{ skip_ci == "false" }}
run: yarn install

- name: Lint
if: ${{ $GITHUB_OUTPUT == "false" }}
if: ${{ skip_ci == "false" }}
run: yarn lint

- name: Test and Coverage
if: ${{ $GITHUB_OUTPUT == "false" }}
if: ${{ skip_ci == "false" }}
run: yarn test:coverage

0 comments on commit d0918e4

Please sign in to comment.