Skip to content

feat: Add update and version commands #31

feat: Add update and version commands

feat: Add update and version commands #31

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
env:
GOPRIVATE: github.com/infracost/*
jobs:
unit:
name: Unit Tests
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v6
with:
cache: false
go-version-file: go.mod
- uses: actions/cache/restore@v4
with: # we only restore cache, not save it, so that PR changes don't poison it
path: |
~/go/pkg/mod
~/.cache/go-build
key: nonexistent
restore-keys: |
${{ runner.os }}-go-${{ hashFiles('go.mod') }}-
- uses: infracost/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.INFRACOST_CI_APP_ID }}
private-key: ${{ secrets.INFRACOST_CI_APP_PRIVATE_KEY }}
owner: infracost
repositories: config
- run: |
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
- run: make test