diff --git a/.github/workflows/bedrock-pull.yaml b/.github/workflows/bedrock-pull.yaml index ef5c03c1..9a2fed46 100644 --- a/.github/workflows/bedrock-pull.yaml +++ b/.github/workflows/bedrock-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: bedrock + - name: Generate docs + run: wing doc + working-directory: bedrock - name: Pack run: wing pack working-directory: bedrock + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./bedrock, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/bedrock-release.yaml b/.github/workflows/bedrock-release.yaml index a768a873..27609405 100644 --- a/.github/workflows/bedrock-release.yaml +++ b/.github/workflows/bedrock-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: bedrock + - name: Generate docs + run: wing doc + working-directory: bedrock - name: Pack run: wing pack working-directory: bedrock + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./bedrock, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/budget-pull.yaml b/.github/workflows/budget-pull.yaml index 8e616603..68b90234 100644 --- a/.github/workflows/budget-pull.yaml +++ b/.github/workflows/budget-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: budget + - name: Generate docs + run: wing doc + working-directory: budget - name: Pack run: wing pack working-directory: budget + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./budget, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/budget-release.yaml b/.github/workflows/budget-release.yaml index 762efa09..c057091e 100644 --- a/.github/workflows/budget-release.yaml +++ b/.github/workflows/budget-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: budget + - name: Generate docs + run: wing doc + working-directory: budget - name: Pack run: wing pack working-directory: budget + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./budget, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/pull-request-diff.yaml b/.github/workflows/check-config.yaml similarity index 90% rename from .github/workflows/pull-request-diff.yaml rename to .github/workflows/check-config.yaml index 0882d747..9f87890d 100644 --- a/.github/workflows/pull-request-diff.yaml +++ b/.github/workflows/check-config.yaml @@ -1,4 +1,4 @@ -name: Pull Request Diff +name: Check Config Files on: pull_request: {} jobs: @@ -13,7 +13,7 @@ jobs: registry-url: https://registry.npmjs.org - name: Install winglang run: npm i -g winglang - - name: Update config files + - name: Generate config files run: ./mkrepo.sh - name: Check for missing changes run: git diff --exit-code || (echo 'Please run "./mkrepo.sh" from the root of diff --git a/.github/workflows/checks-pull.yaml b/.github/workflows/checks-pull.yaml index e0b48fff..8a92f33e 100644 --- a/.github/workflows/checks-pull.yaml +++ b/.github/workflows/checks-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: checks + - name: Generate docs + run: wing doc + working-directory: checks - name: Pack run: wing pack working-directory: checks + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./checks, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/checks-release.yaml b/.github/workflows/checks-release.yaml index 7c199687..1b703df4 100644 --- a/.github/workflows/checks-release.yaml +++ b/.github/workflows/checks-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: checks + - name: Generate docs + run: wing doc + working-directory: checks - name: Pack run: wing pack working-directory: checks + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./checks, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/cloudv2-pull.yaml b/.github/workflows/cloudv2-pull.yaml index fcd5c7a1..9ce4ec6b 100644 --- a/.github/workflows/cloudv2-pull.yaml +++ b/.github/workflows/cloudv2-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: cloudv2 + - name: Generate docs + run: wing doc + working-directory: cloudv2 - name: Pack run: wing pack working-directory: cloudv2 + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./cloudv2, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/cloudv2-release.yaml b/.github/workflows/cloudv2-release.yaml index 27b822d3..e9c2ef68 100644 --- a/.github/workflows/cloudv2-release.yaml +++ b/.github/workflows/cloudv2-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: cloudv2 + - name: Generate docs + run: wing doc + working-directory: cloudv2 - name: Pack run: wing pack working-directory: cloudv2 + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./cloudv2, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/cognito-pull.yaml b/.github/workflows/cognito-pull.yaml index acae0a6a..54b53c2a 100644 --- a/.github/workflows/cognito-pull.yaml +++ b/.github/workflows/cognito-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: cognito + - name: Generate docs + run: wing doc + working-directory: cognito - name: Pack run: wing pack working-directory: cognito + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./cognito, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/cognito-release.yaml b/.github/workflows/cognito-release.yaml index c3afd035..8cf484d5 100644 --- a/.github/workflows/cognito-release.yaml +++ b/.github/workflows/cognito-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: cognito + - name: Generate docs + run: wing doc + working-directory: cognito - name: Pack run: wing pack working-directory: cognito + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./cognito, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/containers-pull.yaml b/.github/workflows/containers-pull.yaml index 8b64ee05..bb861c61 100644 --- a/.github/workflows/containers-pull.yaml +++ b/.github/workflows/containers-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: ./test.sh working-directory: containers + - name: Generate docs + run: wing doc + working-directory: containers - name: Pack run: wing pack working-directory: containers + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./containers, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/containers-release.yaml b/.github/workflows/containers-release.yaml index 4116d665..2c62fa02 100644 --- a/.github/workflows/containers-release.yaml +++ b/.github/workflows/containers-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: ./test.sh working-directory: containers + - name: Generate docs + run: wing doc + working-directory: containers - name: Pack run: wing pack working-directory: containers + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./containers, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/dynamodb-pull.yaml b/.github/workflows/dynamodb-pull.yaml index 28313dda..5599c792 100644 --- a/.github/workflows/dynamodb-pull.yaml +++ b/.github/workflows/dynamodb-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: ./test.sh working-directory: dynamodb + - name: Generate docs + run: wing doc + working-directory: dynamodb - name: Pack run: wing pack working-directory: dynamodb + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./dynamodb, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/dynamodb-release.yaml b/.github/workflows/dynamodb-release.yaml index 2ee50950..01fa5ddf 100644 --- a/.github/workflows/dynamodb-release.yaml +++ b/.github/workflows/dynamodb-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: ./test.sh working-directory: dynamodb + - name: Generate docs + run: wing doc + working-directory: dynamodb - name: Pack run: wing pack working-directory: dynamodb + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./dynamodb, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/eventbridge-pull.yaml b/.github/workflows/eventbridge-pull.yaml index d4e97cba..afa2c1ab 100644 --- a/.github/workflows/eventbridge-pull.yaml +++ b/.github/workflows/eventbridge-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: eventbridge + - name: Generate docs + run: wing doc + working-directory: eventbridge - name: Pack run: wing pack working-directory: eventbridge + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./eventbridge, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/eventbridge-release.yaml b/.github/workflows/eventbridge-release.yaml index 1c40e6e9..7416174a 100644 --- a/.github/workflows/eventbridge-release.yaml +++ b/.github/workflows/eventbridge-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: eventbridge + - name: Generate docs + run: wing doc + working-directory: eventbridge - name: Pack run: wing pack working-directory: eventbridge + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./eventbridge, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/fifoqueue-pull.yaml b/.github/workflows/fifoqueue-pull.yaml index 37876aff..b28df9ba 100644 --- a/.github/workflows/fifoqueue-pull.yaml +++ b/.github/workflows/fifoqueue-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: fifoqueue + - name: Generate docs + run: wing doc + working-directory: fifoqueue - name: Pack run: wing pack working-directory: fifoqueue + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./fifoqueue, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/fifoqueue-release.yaml b/.github/workflows/fifoqueue-release.yaml index 3ad55cd9..3b86f52e 100644 --- a/.github/workflows/fifoqueue-release.yaml +++ b/.github/workflows/fifoqueue-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: fifoqueue + - name: Generate docs + run: wing doc + working-directory: fifoqueue - name: Pack run: wing pack working-directory: fifoqueue + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./fifoqueue, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/github-pull.yaml b/.github/workflows/github-pull.yaml index 148cc380..a890b86a 100644 --- a/.github/workflows/github-pull.yaml +++ b/.github/workflows/github-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: github + - name: Generate docs + run: wing doc + working-directory: github - name: Pack run: wing pack working-directory: github + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./github, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/github-release.yaml b/.github/workflows/github-release.yaml index bd2505de..9a0b072f 100644 --- a/.github/workflows/github-release.yaml +++ b/.github/workflows/github-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: github + - name: Generate docs + run: wing doc + working-directory: github - name: Pack run: wing pack working-directory: github + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./github, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/jwt-pull.yaml b/.github/workflows/jwt-pull.yaml index b243f0d0..d3a34109 100644 --- a/.github/workflows/jwt-pull.yaml +++ b/.github/workflows/jwt-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: jwt + - name: Generate docs + run: wing doc + working-directory: jwt - name: Pack run: wing pack working-directory: jwt + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./jwt, and commit any changes to your branch.' && + exit 1) diff --git a/.github/workflows/jwt-release.yaml b/.github/workflows/jwt-release.yaml index fc079f17..f3102dfc 100644 --- a/.github/workflows/jwt-release.yaml +++ b/.github/workflows/jwt-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: jwt + - name: Generate docs + run: wing doc + working-directory: jwt - name: Pack run: wing pack working-directory: jwt + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./jwt, and commit any changes to your branch.' && + exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/k8s-pull.yaml b/.github/workflows/k8s-pull.yaml index cacc8df8..3e5da433 100644 --- a/.github/workflows/k8s-pull.yaml +++ b/.github/workflows/k8s-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: ./test.sh working-directory: k8s + - name: Generate docs + run: wing doc + working-directory: k8s - name: Pack run: wing pack working-directory: k8s + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./k8s, and commit any changes to your branch.' && + exit 1) diff --git a/.github/workflows/k8s-release.yaml b/.github/workflows/k8s-release.yaml index 3736ae7d..e634893e 100644 --- a/.github/workflows/k8s-release.yaml +++ b/.github/workflows/k8s-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: ./test.sh working-directory: k8s + - name: Generate docs + run: wing doc + working-directory: k8s - name: Pack run: wing pack working-directory: k8s + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./k8s, and commit any changes to your branch.' && + exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/lock-pull.yaml b/.github/workflows/lock-pull.yaml index ae31af7d..07d18d0e 100644 --- a/.github/workflows/lock-pull.yaml +++ b/.github/workflows/lock-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: lock + - name: Generate docs + run: wing doc + working-directory: lock - name: Pack run: wing pack working-directory: lock + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./lock, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/lock-release.yaml b/.github/workflows/lock-release.yaml index 55210ab4..424ab02e 100644 --- a/.github/workflows/lock-release.yaml +++ b/.github/workflows/lock-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: lock + - name: Generate docs + run: wing doc + working-directory: lock - name: Pack run: wing pack working-directory: lock + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./lock, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/messagefanout-pull.yaml b/.github/workflows/messagefanout-pull.yaml index 3aff5b7b..8b273aa7 100644 --- a/.github/workflows/messagefanout-pull.yaml +++ b/.github/workflows/messagefanout-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: messagefanout + - name: Generate docs + run: wing doc + working-directory: messagefanout - name: Pack run: wing pack working-directory: messagefanout + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./messagefanout, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/messagefanout-release.yaml b/.github/workflows/messagefanout-release.yaml index 0d6b1524..16cdab82 100644 --- a/.github/workflows/messagefanout-release.yaml +++ b/.github/workflows/messagefanout-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: messagefanout + - name: Generate docs + run: wing doc + working-directory: messagefanout - name: Pack run: wing pack working-directory: messagefanout + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./messagefanout, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/momento-pull.yaml b/.github/workflows/momento-pull.yaml index 8b24638a..76bf792e 100644 --- a/.github/workflows/momento-pull.yaml +++ b/.github/workflows/momento-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: momento + - name: Generate docs + run: wing doc + working-directory: momento - name: Pack run: wing pack working-directory: momento + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./momento, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/momento-release.yaml b/.github/workflows/momento-release.yaml index 0204948b..20baa5b5 100644 --- a/.github/workflows/momento-release.yaml +++ b/.github/workflows/momento-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: momento + - name: Generate docs + run: wing doc + working-directory: momento - name: Pack run: wing pack working-directory: momento + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./momento, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/ngrok-pull.yaml b/.github/workflows/ngrok-pull.yaml index e2e679cf..cefb66cf 100644 --- a/.github/workflows/ngrok-pull.yaml +++ b/.github/workflows/ngrok-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: ngrok + - name: Generate docs + run: wing doc + working-directory: ngrok - name: Pack run: wing pack working-directory: ngrok + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./ngrok, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/ngrok-release.yaml b/.github/workflows/ngrok-release.yaml index 95d0efee..9a73d982 100644 --- a/.github/workflows/ngrok-release.yaml +++ b/.github/workflows/ngrok-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: ngrok + - name: Generate docs + run: wing doc + working-directory: ngrok - name: Pack run: wing pack working-directory: ngrok + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./ngrok, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/openai-pull.yaml b/.github/workflows/openai-pull.yaml index ddadbd14..b0987d65 100644 --- a/.github/workflows/openai-pull.yaml +++ b/.github/workflows/openai-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: openai + - name: Generate docs + run: wing doc + working-directory: openai - name: Pack run: wing pack working-directory: openai + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./openai, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/openai-release.yaml b/.github/workflows/openai-release.yaml index 3f61b2fe..8c14ea64 100644 --- a/.github/workflows/openai-release.yaml +++ b/.github/workflows/openai-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: openai + - name: Generate docs + run: wing doc + working-directory: openai - name: Pack run: wing pack working-directory: openai + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./openai, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/postgres-pull.yaml b/.github/workflows/postgres-pull.yaml index 64b6b99e..6427e890 100644 --- a/.github/workflows/postgres-pull.yaml +++ b/.github/workflows/postgres-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: postgres + - name: Generate docs + run: wing doc + working-directory: postgres - name: Pack run: wing pack working-directory: postgres + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./postgres, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/postgres-release.yaml b/.github/workflows/postgres-release.yaml index d1af80a7..ffd2d448 100644 --- a/.github/workflows/postgres-release.yaml +++ b/.github/workflows/postgres-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: postgres + - name: Generate docs + run: wing doc + working-directory: postgres - name: Pack run: wing pack working-directory: postgres + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./postgres, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/python-pull.yaml b/.github/workflows/python-pull.yaml index 038a7971..39f3ddaf 100644 --- a/.github/workflows/python-pull.yaml +++ b/.github/workflows/python-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: python + - name: Generate docs + run: wing doc + working-directory: python - name: Pack run: wing pack working-directory: python + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./python, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/python-release.yaml b/.github/workflows/python-release.yaml index ef9a6407..e41bedfd 100644 --- a/.github/workflows/python-release.yaml +++ b/.github/workflows/python-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: python + - name: Generate docs + run: wing doc + working-directory: python - name: Pack run: wing pack working-directory: python + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./python, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/react-pull.yaml b/.github/workflows/react-pull.yaml index 7e1d05e7..334ba9dc 100644 --- a/.github/workflows/react-pull.yaml +++ b/.github/workflows/react-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: ./test.sh working-directory: react + - name: Generate docs + run: wing doc + working-directory: react - name: Pack run: wing pack working-directory: react + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./react, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/react-release.yaml b/.github/workflows/react-release.yaml index 918b2a72..0d830c63 100644 --- a/.github/workflows/react-release.yaml +++ b/.github/workflows/react-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: ./test.sh working-directory: react + - name: Generate docs + run: wing doc + working-directory: react - name: Pack run: wing pack working-directory: react + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./react, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/redis-pull.yaml b/.github/workflows/redis-pull.yaml index 1578e60d..89f9ef24 100644 --- a/.github/workflows/redis-pull.yaml +++ b/.github/workflows/redis-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: redis + - name: Generate docs + run: wing doc + working-directory: redis - name: Pack run: wing pack working-directory: redis + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./redis, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/redis-release.yaml b/.github/workflows/redis-release.yaml index 6bbca71c..b9ccbe63 100644 --- a/.github/workflows/redis-release.yaml +++ b/.github/workflows/redis-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: redis + - name: Generate docs + run: wing doc + working-directory: redis - name: Pack run: wing pack working-directory: redis + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./redis, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/sagemaker-pull.yaml b/.github/workflows/sagemaker-pull.yaml index 2faf3691..29d56b60 100644 --- a/.github/workflows/sagemaker-pull.yaml +++ b/.github/workflows/sagemaker-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: sagemaker + - name: Generate docs + run: wing doc + working-directory: sagemaker - name: Pack run: wing pack working-directory: sagemaker + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./sagemaker, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/sagemaker-release.yaml b/.github/workflows/sagemaker-release.yaml index e8cff6bd..3548cae6 100644 --- a/.github/workflows/sagemaker-release.yaml +++ b/.github/workflows/sagemaker-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: sagemaker + - name: Generate docs + run: wing doc + working-directory: sagemaker - name: Pack run: wing pack working-directory: sagemaker + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./sagemaker, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/ses-pull.yaml b/.github/workflows/ses-pull.yaml index 4c7dc0af..96bc6af5 100644 --- a/.github/workflows/ses-pull.yaml +++ b/.github/workflows/ses-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: ses + - name: Generate docs + run: wing doc + working-directory: ses - name: Pack run: wing pack working-directory: ses + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./ses, and commit any changes to your branch.' && + exit 1) diff --git a/.github/workflows/ses-release.yaml b/.github/workflows/ses-release.yaml index eaab5713..8ef9aad6 100644 --- a/.github/workflows/ses-release.yaml +++ b/.github/workflows/ses-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: ses + - name: Generate docs + run: wing doc + working-directory: ses - name: Pack run: wing pack working-directory: ses + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./ses, and commit any changes to your branch.' && + exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/simtools-pull.yaml b/.github/workflows/simtools-pull.yaml index e8b06565..18ec20e2 100644 --- a/.github/workflows/simtools-pull.yaml +++ b/.github/workflows/simtools-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: simtools + - name: Generate docs + run: wing doc + working-directory: simtools - name: Pack run: wing pack working-directory: simtools + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./simtools, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/simtools-release.yaml b/.github/workflows/simtools-release.yaml index ef31dcc1..d7bc7c39 100644 --- a/.github/workflows/simtools-release.yaml +++ b/.github/workflows/simtools-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: simtools + - name: Generate docs + run: wing doc + working-directory: simtools - name: Pack run: wing pack working-directory: simtools + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./simtools, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/slack-pull.yaml b/.github/workflows/slack-pull.yaml index cdf6b152..d5621ea7 100644 --- a/.github/workflows/slack-pull.yaml +++ b/.github/workflows/slack-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: slack + - name: Generate docs + run: wing doc + working-directory: slack - name: Pack run: wing pack working-directory: slack + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./slack, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/slack-release.yaml b/.github/workflows/slack-release.yaml index 6a853d60..985015e1 100644 --- a/.github/workflows/slack-release.yaml +++ b/.github/workflows/slack-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: slack + - name: Generate docs + run: wing doc + working-directory: slack - name: Pack run: wing pack working-directory: slack + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./slack, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/sns-pull.yaml b/.github/workflows/sns-pull.yaml index 5b6a2803..de5f249f 100644 --- a/.github/workflows/sns-pull.yaml +++ b/.github/workflows/sns-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: sns + - name: Generate docs + run: wing doc + working-directory: sns - name: Pack run: wing pack working-directory: sns + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./sns, and commit any changes to your branch.' && + exit 1) diff --git a/.github/workflows/sns-release.yaml b/.github/workflows/sns-release.yaml index 9974fc8d..0e364435 100644 --- a/.github/workflows/sns-release.yaml +++ b/.github/workflows/sns-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: sns + - name: Generate docs + run: wing doc + working-directory: sns - name: Pack run: wing pack working-directory: sns + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./sns, and commit any changes to your branch.' && + exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/tf-pull.yaml b/.github/workflows/tf-pull.yaml index d435611f..dbeafe1d 100644 --- a/.github/workflows/tf-pull.yaml +++ b/.github/workflows/tf-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: tf + - name: Generate docs + run: wing doc + working-directory: tf - name: Pack run: wing pack working-directory: tf + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./tf, and commit any changes to your branch.' && + exit 1) diff --git a/.github/workflows/tf-release.yaml b/.github/workflows/tf-release.yaml index 1bf90485..f489320f 100644 --- a/.github/workflows/tf-release.yaml +++ b/.github/workflows/tf-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: tf + - name: Generate docs + run: wing doc + working-directory: tf - name: Pack run: wing pack working-directory: tf + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./tf, and commit any changes to your branch.' && + exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/tsoa-pull.yaml b/.github/workflows/tsoa-pull.yaml index adb3cf52..a095813a 100644 --- a/.github/workflows/tsoa-pull.yaml +++ b/.github/workflows/tsoa-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: tsoa + - name: Generate docs + run: wing doc + working-directory: tsoa - name: Pack run: wing pack working-directory: tsoa + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./tsoa, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/tsoa-release.yaml b/.github/workflows/tsoa-release.yaml index 9bd54f8f..74b0a047 100644 --- a/.github/workflows/tsoa-release.yaml +++ b/.github/workflows/tsoa-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: tsoa + - name: Generate docs + run: wing doc + working-directory: tsoa - name: Pack run: wing pack working-directory: tsoa + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./tsoa, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/vite-pull.yaml b/.github/workflows/vite-pull.yaml index b4024b7d..718137bf 100644 --- a/.github/workflows/vite-pull.yaml +++ b/.github/workflows/vite-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: vite + - name: Generate docs + run: wing doc + working-directory: vite - name: Pack run: wing pack working-directory: vite + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./vite, and commit any changes to your branch.' + && exit 1) diff --git a/.github/workflows/vite-release.yaml b/.github/workflows/vite-release.yaml index 2658280b..b13f743b 100644 --- a/.github/workflows/vite-release.yaml +++ b/.github/workflows/vite-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: vite + - name: Generate docs + run: wing doc + working-directory: vite - name: Pack run: wing pack working-directory: vite + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./vite, and commit any changes to your branch.' + && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.github/workflows/websockets-pull.yaml b/.github/workflows/websockets-pull.yaml index 6c8f2c07..0683c4f3 100644 --- a/.github/workflows/websockets-pull.yaml +++ b/.github/workflows/websockets-pull.yaml @@ -24,6 +24,13 @@ jobs: - name: Test run: wing test working-directory: websockets + - name: Generate docs + run: wing doc + working-directory: websockets - name: Pack run: wing pack working-directory: websockets + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./websockets, and commit any changes to your + branch.' && exit 1) diff --git a/.github/workflows/websockets-release.yaml b/.github/workflows/websockets-release.yaml index 5a6beb50..3ae15d77 100644 --- a/.github/workflows/websockets-release.yaml +++ b/.github/workflows/websockets-release.yaml @@ -27,9 +27,16 @@ jobs: - name: Test run: wing test working-directory: websockets + - name: Generate docs + run: wing doc + working-directory: websockets - name: Pack run: wing pack working-directory: websockets + - name: Check for missing changes + run: git diff --exit-code || (echo 'Please run "npm install", "wing test", and + "wing gen-docs" from ./websockets, and commit any changes to your + branch.' && exit 1) - name: Get package version run: echo WINGLIB_VERSION=$(node -p "require('./package.json').version") >> "$GITHUB_ENV" diff --git a/.mkrepo/pr-diff.w b/.mkrepo/check-config.w similarity index 70% rename from .mkrepo/pr-diff.w rename to .mkrepo/check-config.w index 38cfb12d..c04fd17e 100644 --- a/.mkrepo/pr-diff.w +++ b/.mkrepo/check-config.w @@ -1,9 +1,13 @@ bring fs; -pub class PullRequestDiffWorkflow { +/// Create a workflow that runs mkrepo.sh to generate any config files +/// for the monorepo, and detect if any changes are detected. +/// This makes sure that the CI fails if any config files are out of date +/// or if they're manually edited by accident. +pub class CheckConfigWorkflow { new(workflowdir: str) { - fs.writeYaml("{workflowdir}/pull-request-diff.yaml", { - name: "Pull Request Diff", + fs.writeYaml("{workflowdir}/check-config.yaml", { + name: "Check Config Files", on: { pull_request: {} }, @@ -27,7 +31,7 @@ pub class PullRequestDiffWorkflow { "run": "npm i -g winglang", }, { - "name": "Update config files", + "name": "Generate config files", "run": "./mkrepo.sh", }, { diff --git a/.mkrepo/library.w b/.mkrepo/library.w index 9b913c10..a62e3ab2 100644 --- a/.mkrepo/library.w +++ b/.mkrepo/library.w @@ -79,11 +79,22 @@ pub class Library { "working-directory": libdir, }); + steps.push({ + name: "Generate docs", + run: "wing doc", + "working-directory": libdir, + }); + steps.push({ name: "Pack", run: "wing pack", "working-directory": libdir, }); + + steps.push({ + name: "Check for missing changes", + run: "git diff --exit-code || (echo 'Please run \"npm install\", \"wing test\", and \"wing gen-docs\" from ./{libdir}, and commit any changes to your branch.' && exit 1)", + }); }; let releaseSteps = MutArray[]; diff --git a/.mkrepo/main.w b/.mkrepo/main.w index 4547853e..950524e0 100644 --- a/.mkrepo/main.w +++ b/.mkrepo/main.w @@ -4,7 +4,7 @@ bring "./gitattributes.w" as gitattributes; bring "./library.w" as l; bring "./mergify.w" as mergify; bring "./pr-lint.w" as prlint; -bring "./pr-diff.w" as prdiff; +bring "./check-config.w" as checkconfig; bring "./stale.w" as stale; bring "./readme.w" as readme; @@ -33,7 +33,7 @@ readme.update(libs.copy()); new stale.StaleWorkflow(workflowdir); new mergify.MergifyWorkflow(libs.copy()); -new prdiff.PullRequestDiffWorkflow(workflowdir); +new checkconfig.CheckConfigWorkflow(workflowdir); new prlint.PullRequestLintWorkflow(workflowdir, libs.copy()); new gitattributes.GitAttributes();