Skip to content

chore: update hack workflow #530

chore: update hack workflow

chore: update hack workflow #530

Workflow file for this run

name: "Run tests"
on:
push:
branches:
- main
- 'release/**'
pull_request:
branches:
- '**'
types:
- opened
- edited
- synchronize
workflow_dispatch:
jobs:
unit-test:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
TS_NODE_AUTH_KEY: ${{ secrets.TS_NODE_AUTH_KEY }}
TS_SERVER_OAUTH_SECRET: ${{ secrets.TS_SERVER_OAUTH_SECRET }}
steps:
- uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- uses: depot/setup-action@v1
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::494494944992:role/GithubImagePusher
role-session-name: ${{ github.job }}-${{ github.run_id }}
aws-region: us-east-2
- name: Login to Amazon ECR
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2
- name: Install Latest Docker
run: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
- name: Run unit tests
run: |
make tidy
make unit-test