Skip to content

Merge pull request #697 from SethO/dependabot/npm_and_yarn/types/http… #728

Merge pull request #697 from SethO/dependabot/npm_and_yarn/types/http…

Merge pull request #697 from SethO/dependabot/npm_and_yarn/types/http… #728

Workflow file for this run

# 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: CI & Test
on:
push:
branches: [ master ]
# These permissions are needed to interact with GitHub's OIDC Token endpoint.
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm test
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-east-1
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
- name: Run integration tests
run: npm run test:int
- name: Publish
run: npm run smart-publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}