Bump actions/setup-node from 3 to 4 #216
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: ci | |
on: | |
pull_request: | |
branches-ignore: | |
- none | |
jobs: | |
build-and-test: | |
name: Build and test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18.18.0 | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run test | |
build-docker-image: | |
name: Build Docker Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Docker Build | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
push: false | |
tags: splitio-docker-dev.jfrog.io/${{ github.event.repository.name }}:latest | |
- name: Scan container using Lacework | |
uses: lacework/lw-scanner-action@v1.3.0 | |
with: | |
LW_ACCOUNT_NAME: ${{ secrets.LW_ACCOUNT_NAME }} | |
LW_ACCESS_TOKEN: ${{ secrets.LW_ACCESS_TOKEN }} | |
IMAGE_NAME: splitio-docker-dev.jfrog.io/${{ github.event.repository.name }} | |
IMAGE_TAG: latest | |
SAVE_RESULTS_IN_LACEWORK: true | |
SAVE_BUILD_REPORT: true | |
BUILD_REPORT_FILE_NAME: ${{ github.event.repository.name }}.html | |
- name: Save vulnerability report | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vulnerability_report | |
path: ${{ github.event.repository.name }}.html | |
retention-days: 7 |