-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (50 loc) · 1.43 KB
/
deno.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
52
53
54
55
56
57
58
59
60
61
62
name: Validate changes
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
env:
ZEPHYR_TOKEN: ${{ secrets.ZEPHYR_TOKEN }}
JIRA_PAT: ${{ secrets.JIRA_PAT }}
EMAIL: ${{ secrets.EMAIL }}
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup repo
uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Verify formatting
run: deno task check
- name: Validate changes
run: deno task validate
- name: Validate All
run: deno task validate-all
- name: Check spellings
uses: codespell-project/actions-codespell@master
with:
ignore_words_file: .codespellignore
path: data
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v6
- name: Save changes
if: steps.branch-name.outputs.is_default == 'true'
run: deno task save
- name: Sync changes
if: steps.branch-name.outputs.is_default == 'true'
run: deno task sync
- uses: stefanzweifel/git-auto-commit-action@v4
if: steps.branch-name.outputs.is_default == 'true'
with:
commit_message: "chore(data): Sync"
add_options: '-u'
skip_dirty_check: true
commit_user_name: mattermost-quality
commit_user_email: ${{ secrets.EMAIL }}