-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (41 loc) · 1 KB
/
use-action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Use Action
on:
pull_request:
branches: ['main']
push:
branches: ['main']
jobs:
use-action:
name: Use Action
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.platform }}
defaults:
run:
shell: bash
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
- uses: actions/checkout@v4
- uses: ./
- run: |
crane digest ubuntu
crane manifest ubuntu | jq
crane copy ubuntu ghcr.io/${{ github.repository }}/ubuntu-copy
- name: Install old release
uses: ./
with:
version: v0.12.0
- name: Check installed version
run: crane version | grep 0.12.0
- name: Install from tip
uses: ./
with:
version: tip
- name: Check installed version (tip)
run: |
rm $(which crane) # Uninstall previous versions.
crane version