Bump github/super-linter from 6 to 7 #1
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
on: | |
pull_request: | |
types: [opened, synchronize, edited, reopened] | |
permissions: | |
pull-requests: write | |
name: "Bundle Size Diff" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- name: base | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: head | |
ref: ${{ github.ref }} | |
steps: | |
- uses: actions/checkout@master | |
with: | |
ref: ${{ matrix.ref }} | |
submodules: recursive | |
- name: Read Meteor version | |
run: sed -e "s/@/_VERSION=/" < .meteor/release >> "$GITHUB_ENV" | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@master | |
with: | |
node-version: 14.x | |
- uses: actions/cache@v4 | |
id: cache-meteor | |
with: | |
path: ~/.meteor | |
key: "${{ runner.os }}-meteor-install-\ | |
${{ hashFiles('.meteor/versions') }}" | |
- uses: meteorengineer/setup-meteor@v2 | |
if: steps.cache-meteor.outputs.cache-hit != 'true' | |
with: | |
meteor-release: ${{ env.METEOR_VERSION }} | |
- uses: actions/cache@v4 | |
id: cache-npm | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: npm install | |
run: ~/.meteor/meteor npm install | |
- name: install bundle-visualizer | |
run: ~/.meteor/meteor add bundle-visualizer | |
- name: build | |
run: "~/.meteor/meteor build --directory ${{ runner.temp }}\ | |
/build-${{ matrix.name }}" | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.name }} | |
path: | | |
${{runner.temp}}/build-${{matrix.name}}/bundle/programs/web.browser/*.stats.json | |
${{runner.temp}}/build-${{matrix.name}}/bundle/programs/web.browser/*.css | |
- name: remove bundle-visualizer | |
run: ~/.meteor/meteor remove bundle-visualizer | |
diff: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@master | |
- uses: actions/download-artifact@v4 | |
- id: diff | |
uses: ./.github/actions/diff-bundle-stats | |
- uses: marocchino/sticky-pull-request-comment@v2 | |
with: | |
header: bundlesize | |
message: ${{steps.diff.outputs.diff}} | |
hide_and_recreate: true |