Remove stale devcontainer #14651
Workflow file for this run
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
# ------------------------------------------------------------ | |
# Copyright 2023 The Radius 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: Check code is up-to-date | |
on: | |
pull_request: | |
branches: | |
- main | |
- release/* | |
concurrency: | |
# Cancel the previously triggered build for only PR build. | |
group: lint-${{ github.event.pull_request.number || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
linter_check: | |
name: Lint | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
GOVER: '^1.21' | |
GOPROXY: https://proxy.golang.org | |
HELM_CHARTS_DIR: deploy/Chart | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v3 | |
- name: Set up Go ${{ env.GOVER }} | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ env.GOVER }} | |
- name: Setup NodeJS | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install TypeSpec compiler | |
run: | | |
pushd typespec | |
npm ci | |
popd | |
- name: Install autorest | |
run: npm install -g [email protected] | |
- name: Install oav | |
run: npm install -g [email protected] | |
- name: Install mockgen | |
run: go install github.com/golang/mock/[email protected] | |
- name: Install controller-gen | |
run: go install sigs.k8s.io/controller-tools/cmd/[email protected] | |
- name: Install helm | |
uses: Azure/setup-helm@v3 | |
with: | |
version: 'v3.11.1' | |
- name: Run Helm linter | |
run: | | |
helm lint ${{ env.HELM_CHARTS_DIR }} | |
- name: Run linter | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: 'latest' | |
args: --timeout=10m | |
- name: Run make generate | |
run: make generate | |
- name: Check if generated code is up to date | |
continue-on-error: true | |
id: gitdiff | |
run: | | |
git diff --exit-code | |
- name: Check failures | |
if: steps.gitdiff.outcome != 'success' | |
run: | | |
echo "Generated code is not up to date, run 'make generate' to update generated code." | |
exit 1 |