Update dependency eslint-plugin-jest to v27.6.0 (#1193) #1721
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
name: git-push-service | |
on: | |
pull_request: | |
paths: | |
- git-push-service/** | |
- '*.json' | |
- .github/workflows/git-push-service.yaml | |
push: | |
branches: | |
- main | |
paths: | |
- git-push-service/** | |
- '*.json' | |
- .github/workflows/git-push-service.yaml | |
defaults: | |
run: | |
working-directory: git-push-service | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: 20 | |
cache: yarn | |
- run: yarn | |
- run: yarn test | |
e2e-test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 | |
with: | |
node-version: 20 | |
cache: yarn | |
- run: yarn | |
- run: yarn build | |
- run: yarn package | |
- uses: ./git-push-service | |
with: | |
manifests: | | |
${{ github.workspace }}/git-push-service/tests/fixtures/a/generated.yaml | |
overlay: e2e-git-push-service | |
namespace: ns-${{ github.run_number }} | |
service: a | |
destination-repository: ${{ github.repository }} | |
- uses: ./git-push-service | |
with: | |
manifests: | | |
${{ github.workspace }}/git-push-service/tests/fixtures/b/generated.yaml | |
overlay: e2e-git-push-service | |
namespace: ns-${{ github.run_number }} | |
namespace-level: true | |
destination-repository: ${{ github.repository }} | |
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
ref: ns/monorepo-deploy-actions/e2e-git-push-service/ns-${{ github.run_number }} | |
path: git-push-service/actual | |
- run: find actual -type f | |
- run: test -f actual/applications/ns-${{ github.run_number }}--a.yaml | |
- run: test -f actual/services/a/generated.yaml | |
- run: test -f actual/applications/generated.yaml | |
- run: test ! -f actual/applications/ns-${{ github.run_number }}--b.yaml | |
- run: test ! -f actual/services/b/generated.yaml | |
- name: clean up the branch | |
continue-on-error: true | |
if: always() | |
run: | | |
git push origin --delete refs/heads/ns/monorepo-deploy-actions/e2e-git-push-service/ns-${{ github.run_number }} |