Skip to content

Commit

Permalink
ci: upgrade to reused actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Dec 30, 2024
1 parent 30e558f commit 150ad4c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
uses: darklab8/infra/.github/actions/install-go@master

# SOURCE_NAME: The branch or the tag
# SOURCE_BRANCH: The branch or empty
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ jobs:
python3 --version
python3 -m ensurepip
- name: Install requirements.txt
run: >
pip install -r requirements.txt -c constraints.txt
run: pip install -r requirements.txt -c constraints.txt
- name: Build docs
run: >
mkdocs build
run: mkdocs build
- uses: actions/upload-pages-artifact@v1
with:
name: github-pages
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Install Task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin
- name: Install Taskfile
uses: darklab8/infra/.github/actions/install-taskfile@master

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.22.5'
uses: darklab8/infra/.github/actions/install-go@master

- name: Test
run: task test

0 comments on commit 150ad4c

Please sign in to comment.