diff --git a/.github/workflows/cypress-tests.yml b/.github/workflows/cypress-tests.yml index d596ea595d6..acc9ca227fb 100644 --- a/.github/workflows/cypress-tests.yml +++ b/.github/workflows/cypress-tests.yml @@ -17,10 +17,16 @@ jobs: - name: Checkout code uses: actions/checkout@v3 - - name: Use Node.js 16.x + - name: Check package-lock version + uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master + id: lockversion + + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: "${{ steps.lockversion.outputs.version }}" + cache: 'npm' + cache-dependency-path: '**/package-lock.json' - name: Install dependencies run: npm install diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 7219ee2b423..00000000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: Deploy to Netlify -on: - issues: - types: [opened, deleted, closed, reopened, labeled, unlabeled] - -jobs: - publish: - runs-on: ubuntu-latest - - steps: - - name: Trigger deploy on Netlify - run: | - curl -X POST "https://api.netlify.com/api/v1/sites/$NETLIFY_SITE_ID/builds" -H "Authorization: Bearer $NETLIFY_AUTH_TOKEN" - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} diff --git a/.github/workflows/lighthouse-ci.yml b/.github/workflows/lighthouse-ci.yml index f8cc63d308d..539c8b02b64 100644 --- a/.github/workflows/lighthouse-ci.yml +++ b/.github/workflows/lighthouse-ci.yml @@ -39,7 +39,7 @@ jobs: - if: steps.should_run.outputs.shouldrun == 'true' name: Await Netlify Preview - uses: jakepartusch/wait-for-netlify-action@v1 + uses: jakepartusch/wait-for-netlify-action@f1e137043864b9ab9034ae3a5adc1c108e3f1a48 #version 1.4 https://github.com/JakePartusch/wait-for-netlify-action/releases/tag/v1.4 id: netlify with: site_name: asyncapi-website @@ -48,7 +48,7 @@ jobs: - if: steps.should_run.outputs.shouldrun == 'true' name: Lighthouse Audit id: lighthouse_audit - uses: treosh/lighthouse-ci-action@9.3.0 + uses: treosh/lighthouse-ci-action@03becbfc543944dd6e7534f7ff768abb8a296826 #version 10.1 https://github.com/treosh/lighthouse-ci-action/releases/tag/10.1.0 with: urls: | https://deploy-preview-$PR_NUMBER--asyncapi-website.netlify.app/ @@ -87,9 +87,9 @@ jobs: - if: steps.should_run.outputs.shouldrun == 'true' name: LightHouse Statistic Comment id: lighthouse_statistic_comment - uses: marocchino/sticky-pull-request-comment@v2.2.0 + uses: marocchino/sticky-pull-request-comment@efaaab3fd41a9c3de579aba759d2552635e590fd # version 2.8 https://github.com/marocchino/sticky-pull-request-comment/releases/tag/v2.8.0 with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} number: ${{ github.event.pull_request.number }} header: lighthouse message: ${{ steps.lighthouse_score_report.outputs.comment }} diff --git a/.github/workflows/regenerate-meetings-and-videos.yml b/.github/workflows/regenerate-meetings-and-videos.yml index 0430c2c4089..72aeda4e9e6 100644 --- a/.github/workflows/regenerate-meetings-and-videos.yml +++ b/.github/workflows/regenerate-meetings-and-videos.yml @@ -18,13 +18,27 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 + + - name: Check package-lock version + uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master + id: lockversion + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "${{ steps.lockversion.outputs.version }}" + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + - name: Install dependencies run: npm install + - name: Regenerate run: npm run generate:meetings && npm run generate:videos && npm run generate:dashboard + - name: Create Pull Request with new meetings.json, newsroom-videos.json and dashboard.json version - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4 with: token: ${{ secrets.GH_TOKEN }} commit-message: 'chore: update meetings.json, newsrooom_videos.json and dashboard.json' @@ -34,7 +48,7 @@ jobs: branch: update-meetings/${{ github.job }} - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel name: Report workflow run status to Slack - uses: 8398a7/action-slack@v3 + uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #using https://github.com/8398a7/action-slack/releases/tag/v3.15.1 with: status: ${{ job.status }} fields: repo,action,workflow diff --git a/.github/workflows/regenerate-tools.yml b/.github/workflows/regenerate-tools.yml index 1db90e0e34f..705a2950806 100644 --- a/.github/workflows/regenerate-tools.yml +++ b/.github/workflows/regenerate-tools.yml @@ -16,16 +16,26 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} + + - name: Check package-lock version + uses: asyncapi/.github/.github/actions/get-node-version-from-package-lock@master + id: lockversion + + - name: Use Node.js uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: "${{ steps.lockversion.outputs.version }}" + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + - name: Install dependencies run: npm install + - name: Regenerate run: npm run generate:tools + - name: Create Pull Request with new tools.json version - uses: peter-evans/create-pull-request@v4 + uses: peter-evans/create-pull-request@38e0b6e68b4c852a5500a94740f0e535e0d7ba54 # use 4.2.4 https://github.com/peter-evans/create-pull-request/releases/tag/v4.2.4 with: token: ${{ secrets.GH_TOKEN }} commit-message: 'chore: update tools.json' @@ -33,9 +43,10 @@ jobs: author: asyncapi-bot title: 'chore: update tools.json' branch: update-tools/${{ github.job }} + - if: failure() # Only, on failure, send a message on the 94_bot-failing-ci slack channel name: Report workflow run status to Slack - uses: 8398a7/action-slack@v3 + uses: 8398a7/action-slack@fbd6aa58ba854a740e11a35d0df80cb5d12101d8 #using https://github.com/8398a7/action-slack/releases/tag/v3.15.1 with: status: ${{ job.status }} fields: repo,action,workflow diff --git a/.github/workflows/validate-case-studies-structures.yaml b/.github/workflows/validate-case-studies-structures.yaml index 3b73be6a753..df0ca279c5b 100644 --- a/.github/workflows/validate-case-studies-structures.yaml +++ b/.github/workflows/validate-case-studies-structures.yaml @@ -14,13 +14,16 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 + - name: Get changed files id: changed-files - uses: tj-actions/changed-files@v35 + uses: tj-actions/changed-files@af292f1e845a0377b596972698a8598734eb2796 # using https://github.com/tj-actions/changed-files/releases/tag/v40 with: files: config/casestudies/*.yml + - name: Install ajv and yaml run: npm install ajv@8.12.0 ajv-formats@2.1.1 yaml@2.2.1 + - name: Run validation script uses: actions/github-script@v6 with: diff --git a/config/meetings.json b/config/meetings.json index 4d26952ddec..32e1810bae5 100644 --- a/config/meetings.json +++ b/config/meetings.json @@ -1,11 +1,4 @@ [ - { - "title": "Spec 3.0 Docs Meeting", - "calLink": "https://www.google.com/calendar/event?eid=NzU0aGMxOWY5MmYyYzA3OTduazF0MWZqY2MgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn", - "url": "https://github.com/asyncapi/community/issues/790", - "banner": "", - "date": "2023-07-20T14:30:00.000Z" - }, { "title": "Spec 3.0 Docs Meeting", "calLink": "https://www.google.com/calendar/event?eid=cG9iOHNqZGlrbmg4cnUxanMzMTgyN3AxdnMgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn", @@ -138,5 +131,12 @@ "url": "https://github.com/asyncapi/community/issues/917", "banner": "https://user-images.githubusercontent.com/40604284/277314352-f62224d8-03a9-46b2-94bf-13bfae6f973b.png", "date": "2023-11-14T08:00:00.000Z" + }, + { + "title": "Community Meeting", + "calLink": "https://www.google.com/calendar/event?eid=ODNjM2h0bGQ4dGhwcWd2Mmw2MWhkcGcycGcgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn", + "url": "https://github.com/asyncapi/community/issues/918", + "banner": "https://user-images.githubusercontent.com/40604284/277314435-ec985247-c575-4449-9f79-442b3077541a.png", + "date": "2023-11-28T16:00:00.000Z" } ] \ No newline at end of file diff --git a/package.json b/package.json index 5efbf8e453b..0cd0af3bb6e 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "generate:videos": "node scripts/build-newsroom-videos.js", "generate:tools": "node scripts/build-tools.js", "test": "npx cypress run --component", - "release": "echo \"No release to npm for this project\"", "cy:open": "cypress open", "cy:run": "cypress run" },