From c92364b983072a6846535ade6e2744e04a4ced60 Mon Sep 17 00:00:00 2001 From: Eraxyso <130852025+Eraxyso@users.noreply.github.com> Date: Tue, 14 Jan 2025 01:33:55 +0000 Subject: [PATCH] fix: update the version of some ci workflow and add configuration for spectral --- .github/workflows/main.yml | 8 ++++---- .spectral.yml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .spectral.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f224826..d91cc0e2 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,13 +35,13 @@ jobs: - uses: actions/setup-go@v4 with: go-version-file: 'go.mod' - - uses: actions/cache@v3.3.2 + - uses: actions/cache@v4.2.0 with: path: ~/go/pkg/mod key: ${{ runner.os }}-gomod-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-gomod- - - uses: actions/cache@v3.3.2 + - uses: actions/cache@v4.2.0 with: path: /tmp/go/cache key: ${{ runner.os }}-go-build-${{ github.ref }}-${{ github.sha }} @@ -49,7 +49,7 @@ jobs: ${{ runner.os }}-go-build-${{ github.ref }}- ${{ runner.os }}-go-build- - run: go build -o anke-to - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: anke-to path: anke-to @@ -90,7 +90,7 @@ jobs: with: file: ./coverage.txt yml: ./codecov.yml - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: coverage.txt path: coverage.txt diff --git a/.spectral.yml b/.spectral.yml new file mode 100644 index 00000000..a3a785fc --- /dev/null +++ b/.spectral.yml @@ -0,0 +1 @@ +extends: ["spectral:{rulesetTagHere}"] \ No newline at end of file