Skip to content

Commit

Permalink
Merge pull request #47 from MFB-Technologies-Inc/33-resolve-pipeline-…
Browse files Browse the repository at this point in the history
…warnings

33 resolve pipeline warnings
  • Loading branch information
lemke-ethan authored Jul 29, 2024
2 parents 8ea289a + c0401bd commit f61121d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
types: [opened, synchronize, reopened]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -16,30 +16,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16'
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install packages
run: npm install

- name: Check formatting
run: npm run check-formatting

- name: Build project and dependencies
run: npm run build

- name: Run unit tests and generate report
run: npm run test:ci

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22 changes: 11 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: publish

# Run when a new Github publish is released
on:
on:
release:
types: [released]

Expand All @@ -10,24 +10,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: '16'
uses: actions/setup-node@v4
with:
node-version: "20"

- name: Install packages
run: npm install

- name: Build project and dependencies
run: npm run build

- name: Run unit tests and generate report
run: npm run test:ci

- name: Publish package
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
access: "public"
access: "public"

0 comments on commit f61121d

Please sign in to comment.