fix: cannot import sub-collection of postman #1019
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: Build | |
on: | |
- pull_request | |
env: | |
IMG_TOOL: docker | |
jobs: | |
Test: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: ./tools/github-actions/setup-deps | |
- name: Unit Test | |
run: | | |
make test | |
- name: Long Test | |
run: | | |
make testlong | |
- name: Lint Helm | |
run: | | |
make helm-pkg helm-lint | |
- name: Report | |
if: github.actor == 'linuxsuren' | |
env: | |
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} | |
run: | | |
bash <(curl -Ls https://coverage.codacy.com/get.sh) report --partial --force-coverage-parser go -r coverage.out | |
bash <(curl -Ls https://coverage.codacy.com/get.sh) final | |
APITest: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: ./tools/github-actions/setup-deps | |
- name: API Test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
make build | |
make copy | |
sudo atest service install | |
sudo atest service restart | |
sudo atest service status | |
# make test-ui-e2e | |
atest run -p '.github/testing/*.yaml' --request-ignore-error --report github --report-file bin/report.json --report-github-repo linuxsuren/api-testing --report-github-pr ${{ github.event.number }} | |
sudo atest service status | |
sudo atest service stop | |
sudo atest service uninstall | |
atest convert -p .github/testing/core.yaml --converter jmeter -t sample.jmx | |
- name: Run JMeter Tests | |
uses: rbhadti94/[email protected] | |
with: | |
testFilePath: sample.jmx | |
Build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: ./tools/github-actions/setup-deps | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_PUBLISH_SECRETS }} | |
with: | |
version: latest | |
args: release --skip-publish --rm-dist --snapshot | |
# - name: Operator | |
# run: cd operator && make build | |
BuildImage: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: ./tools/github-actions/setup-deps | |
- name: Set output | |
id: vars | |
run: echo "tag=$(git describe --tags)" >> $GITHUB_OUTPUT | |
- name: Package Helm | |
run: | | |
export APP_VERSION=${{ steps.vars.outputs.tag }} | |
export HELM_VERSION=${{ steps.vars.outputs.tag }} | |
if [[ ! "$line" =~ ^v ]] | |
then | |
unset APP_VERSION | |
unset HELM_VERSION | |
fi | |
make helm-pkg | |
- name: Core Image | |
run: GOPROXY=direct IMG_TOOL=docker make build | |
- name: Run e2e | |
env: | |
GITEE_TOKEN: ${{ secrets.GITEE_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
PULL_REQUEST: ${{ github.event.number }} | |
run: | | |
sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose | |
sudo chmod u+x /usr/local/bin/docker-compose | |
make test-e2e | |
# - name: Operator Image | |
# run: cd operator && make docker-build | |
BuildEmbedUI: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- uses: ./tools/github-actions/setup-deps | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: "npm" | |
cache-dependency-path: console/atest-ui/package-lock.json | |
- name: Build | |
run: | | |
make build-embed-ui | |
sudo atest service install | |
sudo atest service restart | |
- name: Test | |
run: make test-ui |