Bump actions/checkout from 3 to 4 #101
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@v4 | |
with: | |
go-version-file: 'gcosts/go.mod' | |
cache-dependency-path: 'gcosts/go.sum' | |
# Tests Perl scripts | |
- name: 🌡️ Test skus.pl | |
run: cd build && perl skus.pl --version | |
- name: 🌡️ Test mapping.pl | |
run: cd build && perl mapping.pl --version | |
- name: 🌡️ Test pricing.pl | |
run: cd build && perl pricing.pl --version | |
# https://github.com/marketplace/actions/run-golangci-lint | |
- name: 🌡️ Lint gcosts | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
working-directory: gcosts | |
- 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 |