Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(QTM-666): Updated actions/checkout and setup-node to node v20 support #574

Merged
merged 2 commits into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions .github/workflows/actions-development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: run storybook
- name: Run storybook
run: yarn storybook --smoke-test

- name: run unit tests
- name: Run unit tests
run: yarn test:components

- name: run the regression tests
- name: Run the regression tests
run: yarn build:regression
30 changes: 14 additions & 16 deletions .github/workflows/actions-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,57 +11,55 @@ jobs:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: run storybook
- name: Run storybook
run: yarn storybook --smoke-test

- name: run unit tests
- name: Run unit tests
run: yarn test:components

- name: run the regression tests
- name: Run the regression tests
run: yarn build:regression

publish:
needs: tests
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
- name: Read .nvmrc
run: echo NVMRC=$(cat .nvmrc) >> $GITHUB_OUTPUT
id: nvm
- uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '${{ steps.nvm.outputs.NVMRC }}'
node-version-file: '.nvmrc'

- name: Install the dependencies
run: yarn

- name: Build
run: yarn build
- name: setting npm token

- name: Setting NPM token
run: ./scripts/publish.sh
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish package
run: yarn semantic-release
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_URL: 'https://api.github.com/'

- name: Deploy storybook to Github Pages
if: ${{ github.ref == 'refs/heads/master' }}
run: yarn deploy-storybook -- --ci
Expand Down