Skip to content

Refactored to use layers on the provider rather than the serverless-l… #16

Refactored to use layers on the provider rather than the serverless-l…

Refactored to use layers on the provider rather than the serverless-l… #16

name: Test-Dev-Api
on:
push:
branches:
- development
jobs:
test-dev-api:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# Install Node on the runner
- name: Install Node
uses: actions/setup-node@v2
with:
node-version: '14.x'
# Install the newman command line utility and also install the html extra reporter
- name: Install newman
run: |
npm install -g newman
npm install -g newman-reporter-htmlextra
# Make directory to upload the test results
- name: Make Directory for results
run: mkdir -p devApiTestResults
# Set
# Run the POSTMAN collection
- name: Run POSTMAN collection
run: |
newman run ./tests/usgs_api_collection.json -e ./tests/dev-api-env.json -r htmlextra --reporter-htmlextra-export devApiTestResults/htmlreport.html
# Upload the contents of Test Results directory to workspace
- name: Output the run Details
uses: actions/upload-artifact@v2
with:
name: DevRunReports
path: devApiTestResults