Skip to content

Commit

Permalink
ci: resolve pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
miladezzat committed Sep 16, 2024
1 parent fb1463f commit 5bfd0e1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 37 deletions.
32 changes: 25 additions & 7 deletions .github/workflows/publish.yml → .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,38 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Generate TOTP continuous integration and publish
name: Continuous Integration and Publish

on:
push:
branches: [ master ]
branches: [ development, master ]
pull_request:
branches: [ development, master ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [22.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install && npm run lint
- run: npm run depcheck
- run: npm run test
- run: npm run coverage

publish:
if: github.ref == 'refs/heads/master' && needs.build.result == 'success'
runs-on: ubuntu-latest
needs: build

strategy:
matrix:
node-version: [14.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v2
Expand All @@ -26,7 +44,7 @@ jobs:
- run: npm run depcheck
- run: npm run test
- run: npm run coverage

- id: publish
uses: JS-DevTools/npm-publish@v1
with:
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/testing.yml

This file was deleted.

0 comments on commit 5bfd0e1

Please sign in to comment.