Skip to content

Commit

Permalink
Adding github templates and workflow
Browse files Browse the repository at this point in the history
Signed-off-by: oumkale <[email protected]>
  • Loading branch information
oumkale committed Dec 7, 2023
1 parent b7ac714 commit 7ce4ebb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 153 deletions.
32 changes: 0 additions & 32 deletions .github/workflows/action-test.yml

This file was deleted.

66 changes: 0 additions & 66 deletions .github/workflows/analysis.yml

This file was deleted.

55 changes: 0 additions & 55 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,36 +86,6 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Install npm
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Setup Python3
uses: actions/setup-python@v4
with:
python-version: "3.x"

- name: Install python components
run: python -m pip install pipenv poetry

- name: Install dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.x"

# Generate mocks
- name: Generate mocks
run: go generate ./...
if: ${{ matrix.suite.name != 'Unit' }}

- name: Run Tests
if: ${{ matrix.suite.name != 'GitHub Integration' || matrix.os == 'ubuntu' }}
run: go test github.com/jfrog/jfrog-registry-operator/${{ matrix.suite.package }} -v -race -timeout 30m -cover
env:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}

github-integration:
name: GitHub Integration Tests
needs: Pretest
Expand All @@ -137,28 +107,3 @@ jobs:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
OPERATOR_TESTS_GITHUB_TOKEN: ${{ secrets.OPERATOR_TESTS_GITHUB_TOKEN }}

azure-integration:
name: Azure Integration Tests
needs: Pretest
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ ubuntu, windows, macos ]
env:
JFROG_CLI_LOG_LEVEL: "DEBUG"
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Build JFrog Registry Operator
run: buildscripts/build.sh

- name: Run Tests
run: go test azure_test.go integrationutils.go commands.go -v -race -timeout 30m -cover
env:
JF_URL: ${{ secrets.PLATFORM_URL }}
JF_ACCESS_TOKEN: ${{ secrets.PLATFORM_ADMIN_TOKEN }}
OPERATOR_TESTS_AZURE_TOKEN: ${{ secrets.OPERATOR_TESTS_AZURE_TOKEN }}

0 comments on commit 7ce4ebb

Please sign in to comment.