diff --git a/.github/workflows/add-to-project-board.yaml b/.github/workflows/add-to-project-board.yaml index 8f23cd406c..5ebb3de16e 100644 --- a/.github/workflows/add-to-project-board.yaml +++ b/.github/workflows/add-to-project-board.yaml @@ -13,21 +13,21 @@ jobs: runs-on: ubuntu-latest name: Add Card to Project(s) steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Get Event Type - run: echo $GITHUB_EVENT_NAME - - name: Assign NEW issues to project 1 - uses: ./.github/actions/add-card-to-project - if: github.event_name == 'issues' && github.event.action == 'opened' - with: - project: 'https://github.com/orgs/lensapp/projects/1' - column_name: 'Backlog' - card_position: 'bottom' - - name: Assign NEW pull requests to project 1 - uses: ./.github/actions/add-card-to-project - if: github.event_name == 'pull_request_target' && github.event.action == 'opened' - with: - project: 'https://github.com/orgs/lensapp/projects/1' - column_name: 'PRs' - card_position: 'bottom' + - name: Checkout + uses: actions/checkout@v3 + - name: Get Event Type + run: echo $GITHUB_EVENT_NAME + - name: Assign NEW issues to project 1 + uses: ./.github/actions/add-card-to-project + if: github.event_name == 'issues' && github.event.action == 'opened' + with: + project: "https://github.com/orgs/lensapp/projects/1" + column_name: "Backlog" + card_position: "bottom" + - name: Assign NEW pull requests to project 1 + uses: ./.github/actions/add-card-to-project + if: github.event_name == 'pull_request_target' && github.event.action == 'opened' + with: + project: "https://github.com/orgs/lensapp/projects/1" + column_name: "PRs" + card_position: "bottom" diff --git a/.github/workflows/bump-master-version.yaml b/.github/workflows/bump-master-version.yaml index 504473e43f..7c4d06ad2b 100644 --- a/.github/workflows/bump-master-version.yaml +++ b/.github/workflows/bump-master-version.yaml @@ -14,7 +14,7 @@ jobs: if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }} steps: - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install dependencies diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index 7418a86269..defc5f3ca1 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -12,12 +12,12 @@ jobs: node-version: [16.x] steps: - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index fc2692be70..e764763208 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,12 +13,12 @@ name: "CodeQL" on: push: - branches: [ master ] + branches: [master] pull_request: # The branches below must be a subset of the branches above - branches: [ master ] + branches: [master] schedule: - - cron: '41 3 * * 2' + - cron: "41 3 * * 2" jobs: analyze: @@ -32,40 +32,40 @@ jobs: strategy: fail-fast: false matrix: - language: [ 'javascript' ] + language: ["javascript"] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] # Learn more: # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v3 - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + # If you wish to specify custom queries, you can do so here or in a config file. + # By default, queries listed here will override any specified in a config file. + # Prefix the list here with "+" to use these queries and those in the config file. + # queries: ./path/to/local/query, your-org/your-repo/queries@main - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 + # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). + # If this step fails, then you should remove it and run the build manually (see below) + - name: Autobuild + uses: github/codeql-action/autobuild@v1 - # â„šī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl + # â„šī¸ Command-line programs to run using the OS shell. + # 📚 https://git.io/JvXDl - # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language + # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines + # and modify them (or add more) to build your code if your project + # uses a compiled language - #- run: | - # make bootstrap - # make release + #- run: | + # make bootstrap + # make release - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/electronegativity.yml b/.github/workflows/electronegativity.yml index 0cc4340f39..6ba06e2721 100644 --- a/.github/workflows/electronegativity.yml +++ b/.github/workflows/electronegativity.yml @@ -10,9 +10,9 @@ jobs: build_job: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v3 with: node-version: "16" diff --git a/.github/workflows/license-header.yml b/.github/workflows/license-header.yml index 20b0a01d19..2e33292785 100644 --- a/.github/workflows/license-header.yml +++ b/.github/workflows/license-header.yml @@ -11,18 +11,18 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Golang - uses: actions/setup-go@v2 - with: - go-version: '^1.18.0' - - name: Install addlicense - run: | - export PATH=${PATH}:`go env GOPATH`/bin - go install github.com/google/addlicense@v1.0.0 - - name: Check license headers - run: | - set -e - export PATH=${PATH}:`go env GOPATH`/bin + - uses: actions/checkout@v3 + - name: Set up Golang + uses: actions/setup-go@v2 + with: + go-version: "^1.18.0" + - name: Install addlicense + run: | + export PATH=${PATH}:`go env GOPATH`/bin + go install github.com/google/addlicense@v1.0.0 + - name: Check license headers + run: | + set -e + export PATH=${PATH}:`go env GOPATH`/bin - addlicense -check -l mit -c "OpenLens Authors" src/**/*.?css + addlicense -check -l mit -c "OpenLens Authors" src/**/*.?css diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index ac7ac673ca..e1b0bac244 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -10,12 +10,12 @@ jobs: node-version: [16.x] steps: - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2fa32efc65..949a4463cb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,12 +23,12 @@ jobs: python-version: "3.x" - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -61,7 +61,7 @@ jobs: pip install mike - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -71,7 +71,7 @@ jobs: git config --local user.name "GitHub Action" - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -88,7 +88,7 @@ jobs: - name: Get the release version if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease id: get_version - run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} + run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT - name: mkdocs deploy new release if: contains(github.ref, 'refs/tags/v') && !github.event.release.prerelease diff --git a/.github/workflows/mkdocs-delete-version.yml b/.github/workflows/mkdocs-delete-version.yml index 0183910d8d..a5ff72b8cb 100644 --- a/.github/workflows/mkdocs-delete-version.yml +++ b/.github/workflows/mkdocs-delete-version.yml @@ -13,26 +13,24 @@ jobs: - name: Set up Python 3.7 uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git pip install mike - + - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: git config run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" - name: mkdocs delete version run: | - mike delete --push ${{ github.event.inputs.version }} - \ No newline at end of file + mike delete --push ${{ github.event.inputs.version }} diff --git a/.github/workflows/mkdocs-manual.yml b/.github/workflows/mkdocs-manual.yml index 03ec36da46..6ca8def8e4 100644 --- a/.github/workflows/mkdocs-manual.yml +++ b/.github/workflows/mkdocs-manual.yml @@ -25,13 +25,13 @@ jobs: pip install mike - name: Checkout Version from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 ref: "${{ github.event.inputs.version }}" - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} @@ -41,7 +41,7 @@ jobs: yarn typedocs-extensions-api - name: Checkout master branch from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: path: "master" ref: "master" diff --git a/.github/workflows/mkdocs-set-default-version.yml b/.github/workflows/mkdocs-set-default-version.yml index 694a7af726..a4bcf5fbb2 100644 --- a/.github/workflows/mkdocs-set-default-version.yml +++ b/.github/workflows/mkdocs-set-default-version.yml @@ -13,26 +13,24 @@ jobs: - name: Set up Python 3.7 uses: actions/setup-python@v2 with: - python-version: '3.x' + python-version: "3.x" - name: Install dependencies run: | python -m pip install --upgrade pip pip install git+https://${{ secrets.GH_TOKEN }}@github.com/lensapp/mkdocs-material-insiders.git pip install mike - + - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: git config run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" - name: mkdocs update default version run: | - mike set-default --push ${{ github.event.inputs.version }} - \ No newline at end of file + mike set-default --push ${{ github.event.inputs.version }} diff --git a/.github/workflows/publish-master-npm.yml b/.github/workflows/publish-master-npm.yml index 31f86ae6f0..620245dc70 100644 --- a/.github/workflows/publish-master-npm.yml +++ b/.github/workflows/publish-master-npm.yml @@ -17,12 +17,12 @@ jobs: node-version: [16.x] steps: - name: Checkout Release - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/publish-release-npm.yml b/.github/workflows/publish-release-npm.yml index becca1f790..0ce928e3d1 100644 --- a/.github/workflows/publish-release-npm.yml +++ b/.github/workflows/publish-release-npm.yml @@ -12,12 +12,12 @@ jobs: node-version: [16.x] steps: - name: Checkout Release - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e672db44a0..f66347a93f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }} steps: - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 - uses: butlerlogic/action-autotag@stable diff --git a/.github/workflows/require-milestone.yml b/.github/workflows/require-milestone.yml index 388aa48013..8fc2c28ba2 100644 --- a/.github/workflows/require-milestone.yml +++ b/.github/workflows/require-milestone.yml @@ -6,7 +6,7 @@ jobs: milestone: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Require Milestone run: | exit $(gh pr view ${{ github.event.pull_request.number }} --json milestone | jq 'if .milestone == null then 1 else 0 end') diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7880506bf..ee1ab58970 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: node-version: [16.x] steps: - name: Checkout Release from lens - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 @@ -28,15 +28,16 @@ jobs: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts - name: Using Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + shell: bash + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v2 + - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }}