fix: revert "NR-221180: docker api fetcher scaffolding (#201)" (#204) #234
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: E2E | |
on: | |
push: | |
branches: | |
- master | |
- renovate/** | |
pull_request: | |
jobs: | |
e2eTests-cgroups-v1: | |
# Do not run e2e tests if commit message or PR has skip-e2e. | |
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') }} | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Check cgroups version | |
run: | | |
if [ $(docker info --format '{{.CgroupVersion}}') != "1" ]; then | |
echo "This test must be run in cgroups v1" | |
exit 1 | |
fi | |
- name: checkout-repository | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Compile nri-docker | |
run: | | |
GOOS=linux GOARCH=amd64 make compile | |
- name: Run E2E for Cgroups v1 | |
uses: newrelic/newrelic-integration-e2e-action@v1 | |
with: | |
spec_path: test/e2e/e2e_spec.yml | |
account_id: ${{ secrets.COREINT_E2E_ACCOUNT_ID }} | |
api_key: ${{ secrets.COREINT_E2E_API_KEY }} | |
license_key: ${{ secrets.COREINT_E2E_LICENSE_KEY }} | |
e2eTests-cgroups-v2: | |
# Do not run e2e tests if commit message or PR has skip-e2e. | |
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') }} | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: checkout-repository | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
- name: Compile nri-docker | |
run: | | |
GOOS=linux GOARCH=amd64 make compile | |
- name: Run E2E for Cgroups v2 | |
uses: newrelic/newrelic-integration-e2e-action@v1 | |
with: | |
spec_path: test/e2e/e2e_spec.yml | |
account_id: ${{ secrets.COREINT_E2E_ACCOUNT_ID }} | |
api_key: ${{ secrets.COREINT_E2E_API_KEY }} | |
license_key: ${{ secrets.COREINT_E2E_LICENSE_KEY }} |