59 lines
1.4 KiB
YAML
59 lines
1.4 KiB
YAML
# Copyright The ORAS Authors.
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
name: Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- release-*
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
jobs:
|
|
test:
|
|
name: Test Setup ORAS CLI
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
|
version:
|
|
- 0.15.1
|
|
- 0.16.0
|
|
fail-fast: true
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup ORAS v${{ matrix.version }}
|
|
uses: ./
|
|
with:
|
|
version: ${{ matrix.version }}
|
|
|
|
- name: Verify ORAS version installed
|
|
env:
|
|
ORAS_VERSION_EXPECTED: ${{ matrix.version }}
|
|
run: |
|
|
echo ---
|
|
oras version
|
|
echo ---
|
|
read -ra ORAS_VERSION_INSTALLED <<<$(oras version)
|
|
[ "${ORAS_VERSION_INSTALLED[1]}" == "$ORAS_VERSION_EXPECTED" ]
|