Skip to content

Commit 103c93b

Browse files
committed
Use GitHub Actions
1 parent 3045e29 commit 103c93b

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "github-actions" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: CI
2+
on: [push, pull_request]
3+
4+
concurrency:
5+
group: "pages"
6+
cancel-in-progress: false
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
13+
- uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
14+
with:
15+
python-version: "3.13"
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install -U pip setuptools
19+
pip install vim-vint
20+
- run: vint colors/
21+
22+
build:
23+
needs: lint
24+
runs-on: ubuntu-latest
25+
env:
26+
TERM: xterm-256color
27+
steps:
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
- run: sudo apt-get install -y --no-install-recommends vim-gtk3
30+
- run: echo "::set-output name=vim-version::$(xvfb-run -a gvim -f --version)\n"
31+
- name: Generate previews
32+
run: |
33+
mkdir -p dist
34+
xvfb-run -a ci/generate.sh dark_gui
35+
xvfb-run -a ci/generate.sh light_gui
36+
xvfb-run -a ci/generate.sh dark_256
37+
xvfb-run -a ci/generate.sh light_256
38+
- name: Upload artifact
39+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
40+
with:
41+
path: dist/
42+
43+
deploy:
44+
needs: build
45+
if: github.ref == 'refs/heads/master'
46+
permissions:
47+
pages: write
48+
id-token: write
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
runs-on: ubuntu-latest
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

0 commit comments

Comments
 (0)