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

chore: Rework setup script #27

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
halostatue marked this conversation as resolved.
Show resolved Hide resolved
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly

- package-ecosystem: mix
directory: /elixir
schedule:
interval: weekly
19 changes: 11 additions & 8 deletions .github/github_workflows.ex
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ defmodule GithubWorkflows do
steps: [
checkout_step(),
[
uses: "superfly/flyctl-actions/setup-flyctl@master"
uses: "superfly/flyctl-actions/[email protected]",
with: [
version: "0.3.60"
]
],
[
run: "flyctl deploy --remote-only",
Expand Down Expand Up @@ -242,7 +245,7 @@ defmodule GithubWorkflows do
steps: [
[
name: "Restore PLT cache",
uses: "actions/cache/restore@v4",
uses: "actions/cache/restore@v4.1.2",
with: cache_opts(@plt_cache_key_prefix, @plt_cache_path)
],
[
Expand Down Expand Up @@ -277,15 +280,15 @@ defmodule GithubWorkflows do
[
id: "setup-beam",
name: "Set up Elixir",
uses: "erlef/setup-beam@v1",
uses: "erlef/setup-beam@v1.18.2",
with: [
"version-file": ".tool-versions",
"version-type": "strict"
]
],
[
name: "Restore dependencies cache",
uses: "actions/cache/restore@v4",
uses: "actions/cache/restore@v4.1.2",
with: cache_opts(@mix_cache_key_prefix, @mix_cache_path)
]
] ++ steps
Expand Down Expand Up @@ -332,7 +335,7 @@ defmodule GithubWorkflows do
checkout_step(),
[
name: "Restore npm cache",
uses: "actions/cache/restore@v4",
uses: "actions/cache/restore@v4.1.2",
id: "npm-cache",
with: [
path: "node_modules",
Expand Down Expand Up @@ -417,7 +420,7 @@ defmodule GithubWorkflows do
checkout_step(),
[
name: "Restore script result cache",
uses: "actions/cache/restore@v4",
uses: "actions/cache/restore@v4.1.2",
id: "result_cache",
with: [
key:
Expand Down Expand Up @@ -472,7 +475,7 @@ defmodule GithubWorkflows do
[
name: "Check HTTP status code",
if: "steps.result_cache.outputs.cache-hit != 'true'",
uses: "nick-fields/retry@v2",
uses: "nick-fields/retry@v3.0.0",
halostatue marked this conversation as resolved.
Show resolved Hide resolved
with: [
command:
"INPUT_SITES='[\"http://localhost:4000\"]' INPUT_EXPECTED='[200]' ./test/scripts/check_status_code.sh",
Expand Down Expand Up @@ -531,7 +534,7 @@ defmodule GithubWorkflows do
defp checkout_step do
[
name: "Checkout",
uses: "actions/checkout@v4"
uses: "actions/checkout@v4.2.2"
]
end

Expand Down
Loading
Loading