Skip to content

Commit

Permalink
feat(action): add GitHub Action (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft authored Oct 17, 2024
1 parent d459bb2 commit 4a5dd94
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,11 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: test

action: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
- name: duvet help
run: duvet --help
23 changes: 23 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Duvet
description: 'Installs Duvet in the GitHub Actions environment'
inputs:
version:
description: 'Version of Duvet to install'
default: 0.3.0
required: false
runs:
using: "composite"
steps:
- name: Install rust toolchain
id: toolchain
shell: bash
run: |
rustup toolchain install stable
rustup override set stable
- name: Install Duvet
uses: camshaft/install@v1
with:
crate: duvet
version: ${{ inputs.version }}

0 comments on commit 4a5dd94

Please sign in to comment.