DEV Community

Dedicio Coelho
Dedicio Coelho

Posted on

Como instalar act no Ubuntu ou Pop!OS

O pacote act ajuda você a testar suas Github Actions localmente.

Para instalar manualmente ele na sua distro Linux, é bem simples.

Baixe o arquivo compactado com a sua versão de hardware disponível no site oficial.

No exemplo, vamos baixar a versão amd64/x86_64:

wget -qO act.tag.gz https://github.com/nektos/act/releases/latest/download/act_Linux_x86_64.tar.gz
Enter fullscreen mode Exit fullscreen mode

O comando acima baixará o arquivo para o diretório atual com o nome de act.tar.gz.

O próximo passo é descompactar o arquivo no diretório correto, como faremos abaixo:

sudo tar xf act.tar.gz -C /usr/local/bin act
Enter fullscreen mode Exit fullscreen mode

Neste comando, o arquivo executável é salvo no diretório /usr/local/bin com o nome act.

Feito isso, já pode excluir o arquivo compactado que foi baixado:

rm -rf act.tag.gz
Enter fullscreen mode Exit fullscreen mode

Para verificar que está instalado corretamente, você pode rodar o comando:

act --version
Enter fullscreen mode Exit fullscreen mode

É isso! Já pode testar suas Github Actions na sua máquina.

Este tutorial foi retirado da versão em inglês em lindevs.com.

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more