Add iPhone 15 models (#34) #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |