Skip to content

Commit

Permalink
add empty metrics-report-action
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Jun 22, 2024
1 parent b756669 commit b761e5e
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/metrics-report/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: 'metrics-report-action'
author: 'Dany Castillo'
description: 'Posts a comment with a report about changes in important metrics related to tailwind-merge'
runs:
using: 'node20'
main: 'main.js'
3 changes: 3 additions & 0 deletions .github/actions/metrics-report/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @ts-check

console.log('Hello, world!')
11 changes: 11 additions & 0 deletions .github/actions/metrics-report/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "metrics-report-action",
"version": "0.1.0",
"private": true,
"author": "Dany Castillo",
"type": "module",
"scripts": {
"start": "node main.js"
},
"dependencies": {}
}
32 changes: 32 additions & 0 deletions .github/workflows/metrics-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Metrics report

on: [pull_request]

jobs:
size:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.11.1
- name: Use node_modules cache
uses: actions/cache@v4
with:
path: node_modules
key: yarn-node-20-lock-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-node-20-lock-
- run: yarn install --frozen-lockfile
- name: Use node_modules cache for metrics-report-action
uses: actions/cache@v4
with:
path: .github/actions/metrics-report/node_modules
key: yarn-node-20-metrics-report-action-lock-${{ hashFiles('.github/actions/metrics-report/yarn.lock') }}
restore-keys: |
yarn-node-20-metrics-report-action-lock-
- run: yarn --cwd .github/actions/metrics-report install --frozen-lockfile
- uses: ./.github/actions/metrics-report

0 comments on commit b761e5e

Please sign in to comment.