From 3cbdd465a1037dfda20466a5bc89d888343d517c Mon Sep 17 00:00:00 2001 From: Timothy Stiles Date: Sat, 9 Sep 2023 20:20:15 +0000 Subject: [PATCH] removed old test workflow and renamed new dev container based test workflow to test.yml. --- .github/workflows/devtest.yml | 24 ------------------------ .github/workflows/test.yml | 28 ++++++++++++++-------------- 2 files changed, 14 insertions(+), 38 deletions(-) delete mode 100644 .github/workflows/devtest.yml diff --git a/.github/workflows/devtest.yml b/.github/workflows/devtest.yml deleted file mode 100644 index 97abcb1..0000000 --- a/.github/workflows/devtest.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: 'build and test' -on: - push: - tags: - - v* - branches: - - main - pull_request: -jobs: - build: - runs-on: ubuntu-latest - steps: - - - name: Checkout (GitHub) - uses: actions/checkout@v3 - - - name: Build and run dev container task - uses: devcontainers/ci@v0.3 - with: - imageName: ghcr.io/bebop/ark-devcontainer - cacheFrom: ghcr.io/bebop/ark-devcontainer - push: never - # Change this to be your CI task/script - runCmd: go test -v ./... \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c09625..f8fff3e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,3 +1,4 @@ +name: 'build and test within dev container' on: push: tags: @@ -5,20 +6,19 @@ on: branches: - main pull_request: -name: Test jobs: - test: - strategy: - matrix: - go-version: [1.18.x] - platform: [ubuntu-latest] - runs-on: ${{ matrix.platform }} + build: + runs-on: ubuntu-latest steps: - - name: Install Go - uses: actions/setup-go@v2 + + - name: Checkout (GitHub) + uses: actions/checkout@v3 + + - name: Build and run dev container task + uses: devcontainers/ci@v0.3 with: - go-version: ${{ matrix.go-version }} - - name: Checkout code - uses: actions/checkout@v2 - - name: Test - run: go test -v ./... + imageName: ghcr.io/bebop/ark-devcontainer + cacheFrom: ghcr.io/bebop/ark-devcontainer + push: never + # Change this to be your CI task/script + runCmd: go test -v ./... \ No newline at end of file