Skip to content

Commit

Permalink
CI/CD Add step to run tests. #86
Browse files Browse the repository at this point in the history
  • Loading branch information
OudomMunint committed Aug 17, 2024
1 parent 74b49bc commit e184126
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,28 @@ jobs:
steps:
- name: Checkout PROD
uses: actions/checkout@v4

- name: Install Node.js latest
uses: actions/setup-node@v4
with:
node-version: latest
check-latest: true

- name: Install dependencies
run: npm ci

- name: Run ESLint
run: npx eslint --no-error-on-unmatched-pattern .
run: npx eslint --no-error-on-unmatched-pattern.

- name: Run all tests
run: npm run test

- name: Generate build
env:
CI: false
run: npm run build

# Share artifact inside workflow
# Share artifact
- name: Share artifact inside workflow
uses: actions/upload-artifact@v4
with:
Expand All @@ -38,4 +45,4 @@ jobs:
uses: ncipollo/[email protected]
with:
artifacts: "react-github-actions-build"
tag: v1.5.4.7
tag: v1.5.5

0 comments on commit e184126

Please sign in to comment.