-
Notifications
You must be signed in to change notification settings - Fork 214
Expand file tree
/
Copy pathaction.yml
More file actions
48 lines (43 loc) · 1.26 KB
/
action.yml
File metadata and controls
48 lines (43 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: setup_ubuntu
inputs:
cwd:
required: false
default: ${{ github.workspace }}
node:
required: true
description: Major node version
npm:
required: false
description: Major npm version
update_npm:
required: false
default: false
description: "Setup Ubuntu Machine"
runs:
using: composite
steps:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node }}
cache: npm
- name: Update NPM version
if: inputs.update_npm == 'true'
run: |-
npm install -g npm@${{ inputs.npm }}
shell: bash
- name: Verify node and npm versions
uses: ./.github/actions/verify_node_npm_major_versions
with:
node: ${{ inputs.node }}
npm: ${{ inputs.npm }}
- name: Install Dependencies
working-directory: ${{ inputs.cwd }}
run: |-
# Install node dependencies
node ./scripts/gtime.js monorepo_install npm ci
# Install Snyk CLI
# TODO: Ticket W-12425059. Revisit Snyk CLI integration to monitor manifest files on generated projects.
# TODO: Latest Snyk CLI version is currently failing on npm i. We use the alternative Snyk GitHub integration.
# sudo npm install -g snyk
shell: bash