Skip to content

Commit

Permalink
OHRM5X-1888: Upgrade workflow actions, switch node 18
Browse files Browse the repository at this point in the history
  • Loading branch information
Chamara Abesinghe committed Jan 4, 2023
1 parent 8d1769a commit 4e0eebb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/linting.yml
Expand Up @@ -7,7 +7,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: yarn install
- name: Lint
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Expand Up @@ -10,11 +10,11 @@ jobs:
if: github.repository == 'orangehrm/oxd'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Check version already published
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/storybook.yml
Expand Up @@ -7,7 +7,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install npm dependencies
run: yarn install
- name: Build Storybook
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/unit-tests.yml
Expand Up @@ -7,15 +7,20 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- name: Install npm dependencies
run: yarn install

- name: Unit tests
run: yarn workspace oxd-components test:unit --coverage

- name: Upload jest coverage
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: jest-coverage
path: components/coverage

0 comments on commit 4e0eebb

Please sign in to comment.