Skip to content

Commit

Permalink
generate workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
eladcon committed Mar 14, 2024
1 parent 35e84ee commit 9befa33
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 7 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/canary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,27 @@ jobs:
- name: Test
run: wing test
working-directory: checks
canary-eventbridge:
name: Test eventbridge
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: eventbridge
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: eventbridge
- name: Test
run: wing test
working-directory: eventbridge
canary-fifoqueue:
name: Test fifoqueue
runs-on: ubuntu-latest
Expand Down Expand Up @@ -109,6 +130,27 @@ jobs:
- name: Test
run: wing test
working-directory: github
canary-lock:
name: Test lock
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
sparse-checkout: lock
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
- name: Install dependencies
run: npm install --include=dev
working-directory: lock
- name: Test
run: wing test
working-directory: lock
canary-ngrok:
name: Test ngrok
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/eventbridge-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- eventbridge/**
jobs:
build:
build-eventbridge:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/eventbridge-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- main
paths:
- eventbridge/**
- "!eventbridge/package-lock.json"
jobs:
build:
build-eventbridge:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lock-pull.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
paths:
- lock/**
jobs:
build:
build-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -14,7 +14,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/lock-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ on:
- main
paths:
- lock/**
- "!lock/package-lock.json"
jobs:
build:
build-lock:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,7 +17,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version: 20.x
registry-url: https://registry.npmjs.org
- name: Install winglang
run: npm i -g winglang
Expand All @@ -29,9 +30,25 @@ jobs:
- name: Pack
run: wing pack
working-directory: lock
- name: Get package version
run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >>
"$GITHUB_ENV"
working-directory: lock
- name: Publish
run: npm publish --access=public --registry https://registry.npmjs.org --tag
latest *.tgz
working-directory: lock
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
tag: lock-v${{ env.WINGLIB_VERSION }}
- name: GitHub release
uses: softprops/action-gh-release@v1
with:
name: lock v${{ env.WINGLIB_VERSION }}
tag_name: lock-v${{ env.WINGLIB_VERSION }}
files: "*.tgz"
token: ${{ secrets.PROJEN_GITHUB_TOKEN }}
12 changes: 12 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,18 @@ pull_request_rules:
- -check-failure=build-containers
- -check-pending=build-containers
- -check-stale=build-containers
- -check-failure=build-eventbridge
- -check-pending=build-eventbridge
- -check-stale=build-eventbridge
- -check-failure=build-fifoqueue
- -check-pending=build-fifoqueue
- -check-stale=build-fifoqueue
- -check-failure=build-github
- -check-pending=build-github
- -check-stale=build-github
- -check-failure=build-lock
- -check-pending=build-lock
- -check-stale=build-lock
- -check-failure=build-ngrok
- -check-pending=build-ngrok
- -check-stale=build-ngrok
Expand Down Expand Up @@ -95,12 +101,18 @@ pull_request_rules:
- -check-failure=build-containers
- -check-pending=build-containers
- -check-stale=build-containers
- -check-failure=build-eventbridge
- -check-pending=build-eventbridge
- -check-stale=build-eventbridge
- -check-failure=build-fifoqueue
- -check-pending=build-fifoqueue
- -check-stale=build-fifoqueue
- -check-failure=build-github
- -check-pending=build-github
- -check-stale=build-github
- -check-failure=build-lock
- -check-pending=build-lock
- -check-stale=build-lock
- -check-failure=build-ngrok
- -check-pending=build-ngrok
- -check-stale=build-ngrok
Expand Down

0 comments on commit 9befa33

Please sign in to comment.