-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 739 Bytes
/
ci.yaml
File metadata and controls
30 lines (25 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install tools
run: |
sudo apt-get update
sudo apt-get install -y jq
- name: Validate manifest.json
run: |
set -euo pipefail
jq . manifest.json >/dev/null
node -e 'const fs=require("fs");const m=JSON.parse(fs.readFileSync("manifest.json","utf8"));if(m.manifest_version!==3){throw new Error("manifest_version must be 3")}'
- name: Basic file checks
run: |
test -f README.md
test -f LICENSE
test -f content.js