Skip to content

Add iPhone 15 models (#34) #59

Add iPhone 15 models (#34)

Add iPhone 15 models (#34) #59

Workflow file for this run

name: CI
on:
push:
paths:
- "**/*.json"
- "**/*.ts"
- .github/workflows/*.yml
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Print version
run: deno --version
- name: Check hashes
# Replace instances of \d\d\d\d-\d\d-\d\d with literal 'YYYY-MM-DD'
# to prevent CI from failing when the file wasn't generated on the same
# day.
# NOTE: On ubuntu, the argument to -i is optional.
run: |
sed -i -e 's/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/YYYY-MM-DD/g' mod.ts
md5sum devices.json mod.ts > hash.md5
deno task build
sed -i -e 's/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]/YYYY-MM-DD/g' mod.ts
md5sum --check hash.md5
- name: Check types
run: deno check mod.ts