Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DO NOT MERGE: Enable tuf-on-ci #1313

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .github/workflows/cosign-test.yml

This file was deleted.

5 changes: 2 additions & 3 deletions .github/workflows/create-signing-events.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: TUF-on-CI create Signing events

on:
# disabled during migration
#schedule:
# - cron: '17 1,7,13,19 * * *'
schedule:
- cron: '17 1,7,13,19 * * *'
workflow_dispatch:

permissions: {}
Expand Down
54 changes: 0 additions & 54 deletions .github/workflows/delegation-pop-verify.yml

This file was deleted.

161 changes: 0 additions & 161 deletions .github/workflows/initialize.yml

This file was deleted.

54 changes: 1 addition & 53 deletions .github/workflows/ci-test.yml → .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: CI Test
name: Lint

on:
push:
paths-ignore:
- 'ceremony/**'
pull_request:
paths-ignore:
- 'ceremony/**'

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: './go.mod'
check-latest: true
- name: golangci-lint
uses: golangci/golangci-lint-action@aaa42aa0628b4ae2578232a66b541047968fac86 # v6.1.0
with:
version: v1.59

yamllint:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -65,40 +47,6 @@ jobs:
with:
actionlint_flags: -color -shellcheck=

test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: './go.mod'
check-latest: true
- name: install deps
run: |
sudo apt-get install libpcsclite-dev
- name: Test
run: go test -tags=pivkey -v ./...
- name: Ensure no files were modified as a result of the build
run: git update-index --refresh && git diff-index --quiet HEAD -- || git diff --exit-code

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: './go.mod'
check-latest: true
- name: install deps
run: |
sudo apt-get install libpcsclite-dev
- name: build verification
run: go build -o verify ./cmd/verify/
- name: build TUF script
run: go build -o tuf -tags=pivkey ./cmd/tuf
- name: build test script
run: go build -o keygen -tags=pivkey ./tests/keygen

shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/online-sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ name: TUF-on-CI online signing
permissions: {}

on:
# disabled during migration
#schedule:
# - cron: '17 1,7,13,19 * * *'
#push:
# branches: [ main ]
# paths: ['metadata/**', '!metadata/timestamp.json', '!metadata/snapshot.json']
schedule:
- cron: '17 1,7,13,19 * * *'
push:
branches: [main]
paths: ['metadata/**', '!metadata/timestamp.json', '!metadata/snapshot.json']
workflow_dispatch:

jobs:
Expand Down
Loading
Loading