Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflowlint autofixes for main #5

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 5 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Elixir CI Checks

env:
DEBIAN_FRONTEND: noninteractive
DEPENDENCY_FILE: mix.lock
Expand All @@ -10,11 +9,9 @@ env:
REPOSITORY: libcluster
RUNNER_OS: ubuntu20 # Must match Elixir/OTP version in described in action erlef/setup-beam@v1
SHA: ${{ github.sha }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
branches:
Expand All @@ -24,11 +21,10 @@ on:
- synchronize
- opened
- reopened

jobs:
static:
name: Static Checks (Elixir ${{ matrix.elixir }} & OTP ${{ matrix.otp }})
runs-on: runs-on,runner=2cpu-linux-x64
runs-on: "runs-on/runner=2cpu-linux-x64/run-id=${{ github.run_id }}"
outputs:
HASH: ${{ steps.hash.outputs.HASH }}
strategy:
Expand Down Expand Up @@ -99,7 +95,7 @@ jobs:
mix hex.publish --dry-run
test:
name: Unit Tests (Elixir ${{ matrix.elixir }} & OTP ${{ matrix.otp }})
runs-on: runs-on,runner=2cpu-linux-x64
runs-on: "runs-on/runner=2cpu-linux-x64/run-id=${{ github.run_id }}"
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -165,7 +161,7 @@ jobs:
permit:
name: Permit Package Publishing
needs: [static, test]
runs-on: runs-on,runner=1cpu-linux-x64
runs-on: "runs-on/runner=1cpu-linux-x64/run-id=${{ github.run_id }}"
outputs:
PUBLISH: ${{ steps.version.outputs.PUBLISH }}
steps:
Expand Down Expand Up @@ -211,11 +207,10 @@ jobs:
with:
path: approval.txt
key: ${{ runner.os }}-${{ env.REPOSITORY }}-approval-${{ needs.static.outputs.HASH }}

publish:
name: Publish Hex Package
needs: [permit]
runs-on: runs-on,runner=2cpu-linux-x64
runs-on: "runs-on/runner=2cpu-linux-x64/run-id=${{ github.run_id }}"
if: needs.permit.outputs.PUBLISH == 'true' && github.event_name == 'push'
steps:
- name: Checkout latest codebase
Expand Down Expand Up @@ -247,10 +242,8 @@ jobs:
run: |
echo "Publishing package"
mix hex.publish --yes


check_release:
runs-on: runs-on,runner=2cpu-linux-x64
runs-on: "runs-on/runner=2cpu-linux-x64/run-id=${{ github.run_id }}"
name: Check release
container:
image: elixir:1.13-slim
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/dev-publish.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Elixir Dev Publish

env:
DEBIAN_FRONTEND: noninteractive
DEPENDENCY_FILE: mix.lock
Expand All @@ -10,19 +9,16 @@ env:
REPOSITORY: libcluster
RUNNER_OS: ubuntu20 # Must match Elixir/OTP version in described in action erlef/setup-beam@v1
SHA: ${{ github.sha }}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
workflow_dispatch:
inputs: {}

jobs:
dev-publish:
name: Dev Publish
runs-on: runs-on,runner=4cpu-linux-x64
runs-on: "runs-on/runner=4cpu-linux-x64/run-id=${{ github.run_id }}"
steps:
- name: Checkout latest codebase
uses: actions/checkout@v4
Expand Down