Skip to content

Update ABC Updater from v0.3.0 to v0.4.0 (#636) #2144

Update ABC Updater from v0.3.0 to v0.4.0 (#636)

Update ABC Updater from v0.3.0 to v0.4.0 (#636) #2144

Workflow file for this run

# Copyright 2023 Google LLC
#
# 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: 'Lint and test'
on:
push:
branches:
- 'main'
pull_request:
workflow_dispatch:
workflow_call:
concurrency:
group: '${{ github.workflow }}-${{ github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
go_lint:
uses: 'abcxyz/pkg/.github/workflows/go-lint.yml@main' # ratchet:exclude
go_test:
uses: 'abcxyz/pkg/.github/workflows/go-test.yml@main' # ratchet:exclude
strategy:
# allow all os suites to complete, even if one fails
fail-fast: false
matrix:
runner:
- 'macos-13'
- 'macos-14'
- 'ubuntu-latest'
with:
runs-on: '"${{ matrix.runner }}"'
env: '{"ABC_TEST_NON_HERMETIC": true}'
yaml_lint:
uses: 'abcxyz/pkg/.github/workflows/yaml-lint.yml@main' # ratchet:exclude
golden_test_presence:
runs-on: 'ubuntu-latest'
steps:
- name: 'Checkout'
uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
- name: 'Check that all templates have a golden test'
shell: 'bash'
run: './require_golden_tests.sh'
run_golden_tests:
strategy:
# allow all os suites to complete, even if one fails
fail-fast: false
matrix:
runner:
- 'macos-13'
- 'macos-14'
- 'ubuntu-latest'
runs-on: '${{ matrix.runner }}'
steps:
- name: 'Checkout'
uses: 'actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11' # ratchet:actions/checkout@v4
- name: 'Setup Go'
uses: 'actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491' # ratchet:actions/setup-go@v5
with:
go-version-file: 'go.mod'
- name: 'Run all golden tests'
shell: 'bash'
run: 'go run cmd/abc/abc.go golden-test verify'