Atualizando gitactions #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Newman Run | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
newman: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Create dir | ||
run: | | ||
mkdir testArtifacts | ||
#Config environement | ||
- name: Install Node | ||
uses: actions/setup-node@v3.4.1 | ||
- name: Install Newman | ||
run: | | ||
npm install -g newman | ||
npm install -g newman-reporter-htmlextra | ||
- name: Run Test | ||
run: newman run ServeRest.postman_collection.json -e serveRest_env.postman_environment.json -r cli,htmlextra | ||
- name: Report | ||
uses: actions/upload-artifact@v3.1.2 | ||
with: | ||
name: Reports | ||
path: newman |