Update actions/deploy-pages action to v3 #624
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: roku-analysis | |
on: | |
pull_request: | |
push: | |
env: | |
BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
jobs: | |
static: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4 | |
with: | |
node-version: "lts/*" | |
cache: "npm" | |
- name: NPM install | |
run: npm ci | |
- name: Install roku module dependencies | |
run: npm run ropm | |
- name: Build dev app | |
if: env.BRANCH_NAME != 'master' | |
run: npm run build | |
- name: Build app for production | |
if: env.BRANCH_NAME == 'master' | |
run: npm run build-prod | |
- name: Use Java 17 | |
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0 # v3 | |
with: | |
distribution: "temurin" | |
java-version: "17" | |
- name: Download the Static Channel Analysis CLI | |
run: | | |
curl -sSL "https://devtools.web.roku.com/static-channel-analysis/sca-cmd.zip" -o sca-cmd.zip | |
unzip sca-cmd.zip | |
- name: Run Roku Static Analysis | |
run: ./sca-cmd/bin/sca-cmd ${{ github.workspace }}/build/staging --exit error |