Skip to content

chnirt/install-act

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

install-act

Run your GitHub Actions locally!

Chnirt

Installation through package managers

Homebrew (Linux/macOS)

homebrew version

brew install act

or if you want to install version based on latest commit, you can run below (it requires compiler to be installed installed but Homebrew will suggest you how to install it, if you don't have it):

brew install act --HEAD

MacPorts (macOS)

MacPorts package install MacPorts before execute below check port:

port --version

install act:

sudo port install act

Nix (Linux/macOS)

Nix recipe

Install Nix:

sh <(curl -L https://nixos.org/nix/install) --daemon

Global install:

nix-env -iA nixpkgs.act

or through nix-shell:

nix-shell -p act

Using the latest Nix command, you can run directly :

nix run nixpkgs#act

Docker (macOS)

Install Docker

brew install --cask docker

Check Docker

docker ps

Quickstart for GitHub Actions

  • Create a .github/workflows directory in your repository on GitHub if this directory does not already exist.
  • In the .github/workflows directory, create a file named github-actions-demo.yml. For more information, see "Creating new files."
  • Copy the following YAML contents into the github-actions-demo.yml file:
name: GitHub Actions Demo
on: [push]
jobs:
  Explore-GitHub-Actions:
    runs-on: ubuntu-latest
    steps:
      - run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
      - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
      - run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
      - name: Check out repository code
        uses: actions/checkout@v3
      - run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
      - run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
      - name: List files in the repository
        run: |
          ls ${{ github.workspace }}
      - run: echo "🍏 This job's status is ${{ job.status }}."

Run act to execute

act

Free Software, Hell Yeah!

About

Run your GitHub Actions locally!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published