Skip to content

Commit

Permalink
ci: changes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdharmen committed Jun 23, 2024
1 parent fff473e commit 1940bc5
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 20 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,34 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "18.x"
node-version: '20.x'

- uses: actions/cache@v4
id: npm-cache
with:
# The Cypress binary is saved within the `~/.cache` folder.
path: |
node_modules
~/.cache
key: ${{ runner.os }}-npm-${{ hashFiles('package-lock.json') }}
restore-keys: ${{ runner.os }}-npm

- name: Install dependencies
if: steps.npm-cache.outputs.cache-hit != 'true'
env:
HUSKY_SKIP_INSTALL: true
run: npm ci

- name: Cypress run
uses: cypress-io/github-action@v6
with:
build: npm run build
start: npm start
component: true

- name: Lint, build and release
- name: Lint, build, test and release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm run lint
npm run lint -- @ngxpert/cmdk
npm run build:lib
npm run build
npm run test
npx semantic-release --debug
Loading

0 comments on commit 1940bc5

Please sign in to comment.