Skip to content

update

update #2

Workflow file for this run

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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: unit
on:
push:
jobs:
unit:
name: unit
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 6
fail-fast: false
matrix:
goversion:
- "go.mod"
- "1.22.1"
os:
- ubuntu-22.04
- ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: true
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: true
- uses: actions/setup-go@v5
if: matrix.goversion != 'go.mod'
with:
go-version: ${{ matrix.goversion }}
- uses: oras-project/setup-oras@v1
with:
version: 1.0.0
- name: checkoutactions
uses: actions/checkout@v4
- uses: actions/setup-go@v5
if: matrix.goversion == 'go.mod'
with:
go-version-file: go.mod
- name: run
run: |
make test
- name: check artifacts
if: always()
run: |
mkdir -p _artifacts
ls _artifacts
- uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
if: always()
with:
name: unit
path: _artifacts