-
Notifications
You must be signed in to change notification settings - Fork 95
45 lines (42 loc) · 1.54 KB
/
cicheck.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
name: CI
# Controls when the action will run.
on:
pull_request:
branches: [ main ]
jobs:
cicheck:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # No shallow clone, we need all history!
- name: Setup Python
uses: actions/[email protected]
# Runs a set of commands using the runners shell
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y optipng jpegoptim jq
pip install bs4
pip install requests
pip install scour
- name: Run CI Checks
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_USER_EMAIL: ${{ secrets.GH_USER_EMAIL }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_USER_ID: ${{ secrets.GH_USER_ID }}
LANGUAGETOOLS_API_KEY: ${{ secrets.LANGUAGETOOLS_API_KEY }}
LANGUAGETOOLS_USERNAME: ${{ secrets.LANGUAGETOOLS_USERNAME }}
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}
FIRST_COMMIT: ${{ github.event.pull_request.base.sha }}
LAST_COMMIT: ${{ github.event.after }}
PR_NUMBER: ${{ github.event.pull_request.number }}
run: bash ${{github.workspace}}/scripts/cicheck.sh