v1.3.7: Update dependencies (#149) #368
Workflow file for this run
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: Validation | |
on: [push] | |
jobs: | |
build: | |
name: Verifying | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Restore cache of Node.js project dependencies | |
id: cache-node-modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: node_modules | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | |
- name: Install Node.js project dependencies | |
if: steps.cache-node-modules.outputs.cache-hit != 'true' | |
run: npm ci | |
- name: Run lint of code | |
run: npm run lint | |
- name: Run unit tests | |
run: npm run test | |
simple: | |
name: AWS CodeBuild | |
runs-on: ubuntu-latest | |
needs: [ build ] | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Executing AWS CodeBuild task | |
uses: ./ | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: us-east-1 | |
with: | |
projectName: 'testing-codebuild-logs' | |
redirectServiceURL: 'https://cloudaws.link/r/' | |
buildspec: '{ | |
"environmentVariablesOverride":[ | |
{ "name":"testEnvVar", "value":"Testing environment variable", "type": "PLAINTEXT" } | |
], | |
"logsConfigOverride": { | |
"cloudWatchLogs": { | |
"status": "ENABLED" | |
} | |
} | |
}' |