From b46bd45727c9a906563a6ee02ae48d743f883f43 Mon Sep 17 00:00:00 2001 From: mithereal Date: Thu, 7 Dec 2023 19:30:03 -0700 Subject: [PATCH] add increment product version workflow --- .circleci/config.yml | 4 +- .github/workflows/coveralls.yml | 63 ------------------------- .github/workflows/increment_version.yml | 2 +- 3 files changed, 3 insertions(+), 66 deletions(-) delete mode 100644 .github/workflows/coveralls.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index c64ec5c..7f6a53d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ jobs: # basic units of work in a run build: # runs not using Workflows must have a `build` job as entry point parallelism: 1 # run only one instance of this job docker: # run the steps with Docker - - image: circleci/elixir:1.9 # ...with this image as the primary container; this is where all `steps` will run + - image: cimg/elixir:1.15.5-erlang-26.0.2 # ...with this image as the primary container; this is where all `steps` will run environment: # environment variables for primary container MIX_ENV: test @@ -38,4 +38,4 @@ jobs: # basic units of work in a run - store_test_results: # upload junit test results for display in Test Summary # Read more: https://circleci.com/docs/2.0/collect-test-data/ - path: _build/test/lib/apeedtest # Replace with the name of your :app \ No newline at end of file + path: _build/test/lib/speedtest # Replace with the name of your :app \ No newline at end of file diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml deleted file mode 100644 index e3add9c..0000000 --- a/.github/workflows/coveralls.yml +++ /dev/null @@ -1,63 +0,0 @@ -# Created with GitHubActions version 0.2.16 -name: Coveralls Report -env: - GITHUB_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} -on: - - pull_request - - push -jobs: - linux: - name: Test on Ubuntu (Elixir ${{ matrix.elixir }}, OTP ${{ matrix.otp }}) - runs-on: ubuntu-20.04 - services: - # Label used to access the service container - strategy: - matrix: - elixir: - - '1.15.6' - otp: - - '26.1' - exclude: - - elixir: '1.13.4' - otp: '26.1' - - elixir: '1.14.5' - otp: '22.3' - - elixir: '1.14.5' - otp: '26.1' - - elixir: '1.15.6' - otp: '22.3' - - elixir: '1.15.6' - otp: '23.3' - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Elixir - uses: erlef/setup-beam@v1 - with: - elixir-version: ${{ matrix.elixir }} - otp-version: ${{ matrix.otp }} - - name: Restore deps - uses: actions/cache@v3 - with: - path: deps - key: deps-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - - name: Restore _build - uses: actions/cache@v3 - with: - path: _build - key: _build-${{ runner.os }}-${{ matrix.elixir }}-${{ matrix.otp }}-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }} - - name: Get dependencies - run: mix deps.get - - name: Compile dependencies - run: MIX_ENV=test mix deps.compile - - name: Compile project - run: MIX_ENV=test mix compile - - name: Check code format - if: ${{ contains(matrix.elixir, '1.15.6') && contains(matrix.otp, '26.1') }} - run: mix format --check-formatted - - name: Run tests - run: MIX_ENV=test mix test - if: ${{ !(contains(matrix.elixir, '1.15.6') && contains(matrix.otp, '26.1')) }} - - name: Run tests with coverage - run: MIX_ENV=test mix coveralls.github - if: ${{ contains(matrix.elixir, '1.15.6') && contains(matrix.otp, '26.1') }} \ No newline at end of file diff --git a/.github/workflows/increment_version.yml b/.github/workflows/increment_version.yml index 9075203..4fc4cc9 100644 --- a/.github/workflows/increment_version.yml +++ b/.github/workflows/increment_version.yml @@ -15,7 +15,7 @@ jobs: fetch-depth: 0 - name: Bump version and push tag - uses: anothrNick/github-tag-action@1.36.0 + uses: data-twister/github-tag-action-elixir@1.0.0 env: GITHUB_TOKEN: ${{ github.token }} WITH_V: true