summaryrefslogtreecommitdiffstats
path: root/third_party/rust/jsparagus/.github/workflows/ci-push.yml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /third_party/rust/jsparagus/.github/workflows/ci-push.yml
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/jsparagus/.github/workflows/ci-push.yml')
-rw-r--r--third_party/rust/jsparagus/.github/workflows/ci-push.yml57
1 files changed, 57 insertions, 0 deletions
diff --git a/third_party/rust/jsparagus/.github/workflows/ci-push.yml b/third_party/rust/jsparagus/.github/workflows/ci-push.yml
new file mode 100644
index 0000000000..0ca6f3a954
--- /dev/null
+++ b/third_party/rust/jsparagus/.github/workflows/ci-push.yml
@@ -0,0 +1,57 @@
+name: NotImplemented
+
+on:
+ push:
+ branches:
+ - master
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ # Check out master, so that we can count.
+ - uses: actions/checkout@v2
+ - name: Setup Python
+ uses: actions/setup-python@v1
+ with:
+ python-version: "3.7"
+ - name: Get Count
+ # Record the count in a tmp file so it survives changing branches
+ run: |
+ find crates -iname '*.rs' -type f -exec cat {} + | grep -c -E "(Emit|Parse)Error::NotImplemented" > /tmp/count
+ git rev-parse HEAD > /tmp/commit
+ cp .metrics/not_implemented_badge.py /tmp
+ cp .metrics/not_implemented_count.py /tmp
+ # Checkout the results branch
+ - uses: actions/checkout@v2
+ with:
+ ref: ci_results
+ - name: Add NotImplemented count
+ run: |
+ export total_count=$(cat /tmp/count)
+ export current_commit=$(cat /tmp/commit)
+ # Make sure the generating files are up to date
+ cp -f /tmp/not_implemented_badge.py .metrics/not_implemented_badge.py
+ cp -f /tmp/not_implemented_count.py .metrics/not_implemented_count.py
+ # Run the files
+ cd .metrics
+ python not_implemented_badge.py
+ python not_implemented_count.py
+ git add badges/not-implemented.json
+ git add count/not-implemented.json
+ - name: Commit files
+ # fails if no files to commit
+ continue-on-error: true
+ run: |
+ git config --local user.email "action@github.com"
+ git config --local user.name "GitHub Action"
+ git commit -m "update NotImplemented Count" -a
+ - name: Push changes
+ uses: ad-m/github-push-action@master
+ continue-on-error: true
+ with:
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ branch: ci_results
+ force: true