Skip to content

fix: remove family and add logging #25

fix: remove family and add logging

fix: remove family and add logging #25

Workflow file for this run

name: JSON formatting checker
on:
push:
paths:
- "*-device-identifiers*.json"
pull_request:
paths:
- "*-device-identifiers*.json"
jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM
uses: actions/setup-node@v3
with:
node-version: 16
- name: Format JSON files
run: |
npx jsonlint -i ios-device-identifiers.json
npx jsonlint -i tvos-device-identifiers.json
npx jsonlint -i watchos-device-identifiers.json
npx jsonlint -i mac-device-identifiers.json
npx jsonlint -i mac-device-identifiers-unique.json
- name: Check JSON files have changed
run: |
git diff --exit-code --quiet *-device-identifiers*.json
- name: Check mac-device-identifiers.json is unique
run: |
length1=`cat mac-device-identifiers.json | jq length`
length2=`cat mac-device-identifiers-unique.json | jq length`
test $length1 = $length2