-
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (51 loc) · 1.35 KB
/
main.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: main
on:
push:
pull_request:
schedule:
- cron: '0 0 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
dist:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run prepare
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
post:
runs-on: ubuntu-latest
needs: [test, dist]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: CTAN submit (validate only)
uses: ./
with:
action: validate
file_path: ${{ github.workspace }}/test/fixtures/htunk.zip
fields: |
pkg: htunk
version: 0.1.0
author: Paolo Brasolin
email: paolo.brasolin@gmail.com
uploader: paolo.brasolin@gmail.com
license: mit
summary: This is a CI test