Skip to content

Commit

Permalink
test16
Browse files Browse the repository at this point in the history
  • Loading branch information
jvvillanueva9104 committed Aug 28, 2023
1 parent 67966f6 commit ba768c1
Showing 1 changed file with 27 additions and 23 deletions.
50 changes: 27 additions & 23 deletions .github/workflows/m3pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
node-version: [14.x, 16.x, 18.x]
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
Expand All @@ -45,7 +45,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Snyk CLI
run: npm install -g snyk
Expand All @@ -62,28 +62,28 @@ jobs:
if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/develop'
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js version
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: List files before uploading artifact
run: |
ls -R dist/ src/ test/ mocharc.json package-lock.json package.json tsconfig.json
- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: node-app
path: .
exclude: |
**/node_modules
**/.log
path: |
dist/
src/
test/
mocharc.json
package-lock.json
package.json
tsconfig.json
- name: "Deploy to Azure Web App - Testing"
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: "turners-car-insurance-test-env"
Expand All @@ -97,24 +97,28 @@ jobs:
if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/main'
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js version
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "18.x"

- name: Download artifact from build job
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
name: node-app
path: .
exclude: |
**/node_modules
**/.log
path: |
dist/
src/
test/
mocharc.json
package-lock.json
package.json
tsconfig.json
- name: "Deploy to Azure Web App - Production"
uses: azure/webapps-deploy@v2
uses: azure/webapps-deploy@v3
id: deploy-to-webapp
with:
app-name: "turners-car-insurance-quote"
Expand Down

0 comments on commit ba768c1

Please sign in to comment.