From d03aeaed4344ea2290d978af857cd517df730810 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Tue, 23 Nov 2021 13:38:36 +0000 Subject: [PATCH 1/3] Generate a feature inventory for every push --- .github/workflows/node.js.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 0b1def7aff9911..54d4e1ded58ad2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,3 +22,8 @@ jobs: - run: npm test env: FORCE_COLOR: 3 + - run: node ./scripts/enumerate-features.js features.json + - uses: actions/upload-artifact@v2 + with: + name: features + path: features.json From 3fe37e02d97405d0276ada27452260f0a40e3f5f Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Tue, 23 Nov 2021 13:48:16 +0000 Subject: [PATCH 2/3] Add diffed features --- .github/workflows/node.js.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 54d4e1ded58ad2..729812133e80ff 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -23,7 +23,12 @@ jobs: env: FORCE_COLOR: 3 - run: node ./scripts/enumerate-features.js features.json + - run: node ./scripts/diff-features.js --format=json > features.diff.json - uses: actions/upload-artifact@v2 with: - name: features + name: enumerate-features path: features.json + - uses: actions/upload-artifact@v2 + with: + name: diff-features + path: features.diff.json From 68d2658dcfa5c2f84924163f561c70bbfce14113 Mon Sep 17 00:00:00 2001 From: "Daniel D. Beck" Date: Tue, 23 Nov 2021 14:48:41 +0000 Subject: [PATCH 3/3] Move to push only --- .github/workflows/add-push-artifacts.yml | 27 ++++++++++++++++++++++++ .github/workflows/node.js.yml | 10 --------- 2 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/add-push-artifacts.yml diff --git a/.github/workflows/add-push-artifacts.yml b/.github/workflows/add-push-artifacts.yml new file mode 100644 index 00000000000000..9ecf45af04120e --- /dev/null +++ b/.github/workflows/add-push-artifacts.yml @@ -0,0 +1,27 @@ +name: Add artifacts on push + +on: + push: [] + +jobs: + test: + name: Enumerate and diff features + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 # get the full repository checkout, not just the inciting commit + - uses: actions/setup-node@v2 + with: + node-version: 14.x + - run: npm install + - run: node ./scripts/enumerate-features.js features.json + - run: node ./scripts/diff-features.js --format=json > features.diff.json + - uses: actions/upload-artifact@v2 + with: + name: enumerate-features + path: features.json + - uses: actions/upload-artifact@v2 + with: + name: diff-features + path: features.diff.json diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 729812133e80ff..0b1def7aff9911 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -22,13 +22,3 @@ jobs: - run: npm test env: FORCE_COLOR: 3 - - run: node ./scripts/enumerate-features.js features.json - - run: node ./scripts/diff-features.js --format=json > features.diff.json - - uses: actions/upload-artifact@v2 - with: - name: enumerate-features - path: features.json - - uses: actions/upload-artifact@v2 - with: - name: diff-features - path: features.diff.json