build(deps): bump google.golang.org/api in /build #591
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
name: Test | |
# https://github.com/actions/virtual-environments/ | |
runs-on: ubuntu-latest | |
steps: | |
- name: 🛎️ Checkout | |
uses: actions/checkout@v4 | |
- name: 🔧 Install dependencies | |
run: | | |
sudo apt-get install \ | |
libapp-options-perl \ | |
libwww-perl \ | |
libjson-xs-perl \ | |
libyaml-libyaml-perl \ | |
libdbd-csv-perl \ | |
libdbd-sqlite3-perl | |
# https://github.com/marketplace/actions/setup-go-environment | |
- name: 🔧 Setup go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'gcosts/go.mod' | |
cache-dependency-path: '**/go.sum' | |
# https://github.com/marketplace/actions/run-golangci-lint | |
- name: 🌡️ Lint build | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
working-directory: build | |
skip-cache: true # first lint action will handle | |
- name: 🍳 Build build/skus | |
run: cd build && make native && ./skus --version | |
# https://github.com/marketplace/actions/run-golangci-lint | |
- name: 🌡️ Lint gcosts | |
uses: golangci/golangci-lint-action@v6 | |
with: | |
working-directory: gcosts | |
skip-cache: true # first lint action will handle | |
- name: 🍳 Build gcosts | |
run: cd gcosts && make native && ./gcosts --version | |
# Test binary | |
- name: 🌡️ Test gcosts | |
run: cd gcosts && ./gcosts help | |
- name: 🌡️ Test gcosts region | |
run: cd gcosts && ./gcosts region -p ../pricing.yml | |
- name: 🌡️ Test gcosts compute instance | |
run: cd gcosts && ./gcosts compute instance -p ../pricing.yml | |
- name: 🌡️ Test gcosts calc | |
run: cd gcosts && ./gcosts calc -d ../t -p ../pricing.yml |