Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
kakucodes committed Feb 11, 2024
1 parent b56c94f commit e4b8225
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build project
run: ${{ steps.detect-package-manager.outputs.runner }} npm run build
run: ${{ steps.detect-package-manager.outputs.runner }} yarn build
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Lint

on: [pull_request]

on:
pull_request:
branches: main
push:
branches:
- main
jobs:
eslint:
runs-on: ubuntu-latest
Expand Down
26 changes: 15 additions & 11 deletions .github/workflows/tsc.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
name: Type Check

on: [pull_request]

on:
pull_request:
branches: main
push:
branches:
- main
jobs:
tsc:
name: tsc
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v18
uses: actions/setup-node@v1
with:
node-version: 18
- name: yarn install
run: yarn install
- name: tsc
uses: icrawl/action-tsc@v1
- uses: actions/checkout@v1
- name: install node v18
uses: actions/setup-node@v1
with:
node-version: 18
- name: yarn install
run: yarn install
- name: tsc
uses: icrawl/action-tsc@v1
12 changes: 8 additions & 4 deletions .github/workflows/unitTest.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
name: Unit Test

on: [pull_request]

on:
pull_request:
branches: main
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -10,7 +14,7 @@ jobs:
- name: Test using Node.js
uses: actions/setup-node@v1
with:
node-version: '18'
node-version: "18"
- run: yarn install
- run: yarn test:ci

Expand Down Expand Up @@ -40,4 +44,4 @@ jobs:
"state": "failure",
"description": "Tests failed",
"target_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}'
}'

0 comments on commit e4b8225

Please sign in to comment.