Skip to content

Commit

Permalink
set up new autoformat workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesgaroux committed Sep 2, 2024
1 parent aebe945 commit 65d2603
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 67 deletions.
5 changes: 0 additions & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
steps:
- label: format
command: .buildkite/scripts/format.py
agents:
queue: "scala"

- group: "Test"
steps:
- label: "test {{ matrix }}"
Expand Down
62 changes: 0 additions & 62 deletions .buildkite/scripts/format.py

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Runs auto-formatting script on push to any branch
name: "Scala auto-formatting"

on: push

permissions:
id-token: write
contents: write

jobs:
autoformat:
uses: wellcomecollection/.github/.github/workflows/scala_formatting.yml@main
secrets: inherit
3 changes: 3 additions & 0 deletions builds/run_sbt_task_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ else
fi

docker run --tty --rm \
-e AWS_ACCESS_KEY_ID="${AWS_ACCESS_KEY_ID:-}" \
-e AWS_SECRET_KEY="${AWS_SECRET_KEY:-}" \
-e AWS_SESSION_TOKEN="${AWS_SESSION_TOKEN:-}" \
--volume ~/.sbt:/root/.sbt \
--volume ~/.ivy2:/root/.ivy2 \
--volume "$HOST_COURSIER_CACHE:/root/$LINUX_COURSIER_CACHE" \
Expand Down

0 comments on commit 65d2603

Please sign in to comment.