feat: add support for image caching #30
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: Build | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request_target: | |
branches: [ "main" ] | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/vanilla-os/pico:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install -y make | |
- name: Build | |
run: make | |
test: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/vanilla-os/pico:main | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.21 | |
- name: Install test dependencies | |
run: | | |
apt-get update | |
apt-get install -y build-essential make sqlite3 | |
- name: Test | |
run: | | |
go test -v ./... |