Skip to content

Commit

Permalink
chore: enable npm
Browse files Browse the repository at this point in the history
  • Loading branch information
maksadbek committed Nov 9, 2024
1 parent 4cc4697 commit 6b8f0f4
Showing 1 changed file with 62 additions and 62 deletions.
124 changes: 62 additions & 62 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,71 +226,71 @@ jobs:
E2E_REPEATER_TARGET_URL: ${{ format('http://host.docker.internal:{0}', steps.target.outputs.port) }}
E2E_REPEATER_TARGET_CMD: ${{ steps.target.outputs.cmd }}
E2E_TEST_TIMEOUT: ${{ inputs.test_timeout }}
# npm:
# if: ${{ inputs.test-npm }}
# runs-on: ${{ matrix.os }}
# container: ${{ matrix.container }}
# strategy:
# fail-fast: false
# matrix:
# os: [macos-latest, windows-latest, ubuntu-latest]
# node: [16, 18, 20]
# include:
# - os: ubuntu-latest
# container: ubuntu:16.04
# node: 16
# - os: ubuntu-latest
# container: fedora:24
# node: 16
# - os: ubuntu-latest
# container: fedora:latest
# node: 18
# - os: ubuntu-latest
# container: fedora:latest
# node: 20
# steps:
# - name: Install Packages (Fedora)
# if: ${{ startsWith(matrix.container, 'fedora') }}
# run: |
# dnf -y update \
# && dnf install -y curl tar \
# && dnf clean all \
# && rm -rf /var/cache/dnf/*
npm:
if: ${{ inputs.test-npm }}
runs-on: ${{ matrix.os }}
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
node: [16, 18, 20]
include:
- os: ubuntu-latest
container: ubuntu:16.04
node: 16
- os: ubuntu-latest
container: fedora:24
node: 16
- os: ubuntu-latest
container: fedora:latest
node: 18
- os: ubuntu-latest
container: fedora:latest
node: 20
steps:
- name: Install Packages (Fedora)
if: ${{ startsWith(matrix.container, 'fedora') }}
run: |
dnf -y update \
&& dnf install -y curl tar \
&& dnf clean all \
&& rm -rf /var/cache/dnf/*
# - name: Install Packages (Ubuntu)
# if: startsWith(matrix.container, 'ubuntu')
# run: |
# apt-get update -yq \
# && apt-get install curl -yq \
# && apt-get clean \
# && rm -rf /var/lib/apt/lists/*
- name: Install Packages (Ubuntu)
if: startsWith(matrix.container, 'ubuntu')
run: |
apt-get update -yq \
&& apt-get install curl -yq \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# - name: Checkout Repository
# uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v2

# - name: Download Target
# id: target
# uses: ./.github/workflows/composite/todoapp
- name: Download Target
id: target
uses: ./.github/workflows/composite/todoapp

# - name: Install Dependencies
# uses: ./.github/workflows/composite/npm
# with:
# version: ${{ matrix.node }}
# # https://github.com/actions/setup-node/issues/286#issuecomment-878865957
# cache: ''
- name: Install Dependencies
uses: ./.github/workflows/composite/npm
with:
version: ${{ matrix.node }}
# https://github.com/actions/setup-node/issues/286#issuecomment-878865957
cache: ''

# - name: Install CLI
# run: npm i -g @brightsec/cli@${{ inputs.version }}
- name: Install CLI
run: npm i -g @brightsec/cli@${{ inputs.version }}

# - name: Run Tests
# run: npm run test:e2e
# env:
# E2E_CLI_VERSION: ${{ inputs.version }}
# E2E_CLI_CMD: bright-cli
# E2E_RUN_ID: ${{ format('{0}-{1}-{2}-{3}', github.run_number, github.run_attempt, github.job, strategy.job-index) }}
# E2E_CLUSTER: ${{ vars[format('E2E_{0}_HOST', inputs.environment )] }}
# E2E_PROJECT_ID: ${{ vars[format('E2E_{0}_PROJECT_ID', inputs.environment )] }}
# E2E_CLUSTER_API_KEY: ${{ secrets[format('E2E_{0}_API_KEY', inputs.environment )] }}
# E2E_REPEATER_TARGET_URL: ${{ format('http://localhost:{0}', steps.target.outputs.port) }}
# E2E_REPEATER_TARGET_CMD: ${{ steps.target.outputs.cmd }}
# E2E_TEST_TIMEOUT: ${{ inputs.test_timeout }}
- name: Run Tests
run: npm run test:e2e
env:
E2E_CLI_VERSION: ${{ inputs.version }}
E2E_CLI_CMD: bright-cli
E2E_RUN_ID: ${{ format('{0}-{1}-{2}-{3}', github.run_number, github.run_attempt, github.job, strategy.job-index) }}
E2E_CLUSTER: ${{ vars[format('E2E_{0}_HOST', inputs.environment )] }}
E2E_PROJECT_ID: ${{ vars[format('E2E_{0}_PROJECT_ID', inputs.environment )] }}
E2E_CLUSTER_API_KEY: ${{ secrets[format('E2E_{0}_API_KEY', inputs.environment )] }}
E2E_REPEATER_TARGET_URL: ${{ format('http://localhost:{0}', steps.target.outputs.port) }}
E2E_REPEATER_TARGET_CMD: ${{ steps.target.outputs.cmd }}
E2E_TEST_TIMEOUT: ${{ inputs.test_timeout }}

0 comments on commit 6b8f0f4

Please sign in to comment.