Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mjt91 cv update #543

Closed
wants to merge 19 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .circleci/config.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
Empty file added .github/labeler.yaml
Empty file.
40 changes: 40 additions & 0 deletions .github/labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Warning
- color: "ee0701"
description: "Categorize bug reports."
name: ":warning: bug"
- color: "ee0701"
description: "Categorize vulnerability reports."
name: ":warning: vulnerability"

# Highlight
- color: "0e8a16"
description: "Good for newcomers."
name: ":fire: good first issue"
- color: "0e8a16"
description: "Extra attention is needed."
name: ":fire: help wanted"

# Cancel
- color: "b60205"
description: "This issue or pull request already exists."
name: ":pray: duplicate"
- color: "b60205"
description: "This will not be worked on."
name: ":pray: wontfix"

# Size
- color: "cfd3d7"
description: "Extra Small size issue or PR."
name: "size/XS"
- color: "cfd3d7"
description: "Small size issue or PR."
name: "size/S"
- color: "cfd3d7"
description: "Medium size issue or PR."
name: "size/M"
- color: "cfd3d7"
description: "Large size issue or PR."
name: "size/L"
- color: "cfd3d7"
description: "Extra Large size issue or PR."
name: "size/XL"
57 changes: 57 additions & 0 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Integration

on:
push:
branches:
- master
pull_request: {}

concurrency:
group: integration-${{ github.ref }}
cancel-in-progress: true

jobs:
changed:
runs-on: ubuntu-latest

outputs:
yaml_changed: ${{ steps.filter-yaml.outputs.changed }}
yaml_files: ${{ steps.filter-yaml.outputs.files }}

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get Changed Files
id: changed-files
uses: dorny/paths-filter@v2
with:
list-files: json
filters: |
yaml:
- '**/*.yaml'
- '**/*.yml'

- name: Filter changed YAML files to outputs
id: filter-yaml
run: |
echo ::set-output name=changed::${{ steps.changed-files.outputs.yaml }}
echo ::set-output name=files::${{ steps.changed-files.outputs.yaml_files }}


yaml:
needs:
- changed
if: ${{ needs.changed.outputs.yaml_changed != 'false' }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Lint YAML Files
id: yaml-lint
run: |
yamllint .
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Compile PDFs

on:
push: {}
pull_request: {}

jobs:
build:
runs-on: ubuntu-latest
container: texlive/texlive:latest

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Compile
run: make

- uses: actions/upload-artifact@v3
with:
name: examples
path: examples/*.pdf
34 changes: 34 additions & 0 deletions .github/workflows/pull-request-labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Label Pull Requests

on:
- pull_request_target

jobs:
label-pr:
runs-on: ubuntu-latest

steps:
- name: Add Labels for PR
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: .github/labeler.yaml
sync-labels: true

- name: Add PR Size Labels for PR
uses: codelytv/pr-size-labeler@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
xs_label: 'size/XS'
xs_max_size: '20'
s_label: 'size/S'
s_max_size: '50'
m_label: 'size/M'
m_max_size: '150'
l_label: 'size/L'
l_max_size: '300'
xl_label: 'size/XL'
fail_if_xl: 'false'
message_if_xl: >
'This PR has too many changes.
Please make sure you are NOT addressing multiple issues with one PR.'
25 changes: 25 additions & 0 deletions .github/workflows/sync-labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Sync labels

on:
push:
branches:
- master
paths:
- .github/labels.yaml

jobs:
sync-labels:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Sync labels
uses: crazy-max/ghaction-github-labeler@v4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
yaml-file: .github/labels.yaml
skip-delete: false
dry-run: false
# exclude: |
27 changes: 27 additions & 0 deletions .github/workflows/welcome.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Welcome for First Issue or Pull Request

on:
pull_request_target:
types:
- opened
issues:
types:
- opened

jobs:
welcome:
runs-on: ubuntu-latest

steps:
- name: Welcome for First Issue or Pull Request
uses: actions/first-interaction@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
issue-message: |
### :wave: Welcome! Looks like this is your first issue.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄
pr-message: |
### :wave: Welcome! Looks like this is your first pull request.

Hey, thanks for your contribution! Please give us a bit of time to review it. 😄
53 changes: 53 additions & 0 deletions .yamllint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
yaml-files:
- '*.yaml'
- '*.yml'

rules:
braces:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
brackets:
min-spaces-inside: 0
max-spaces-inside: 1
min-spaces-inside-empty: 0
max-spaces-inside-empty: 0
colons:
max-spaces-before: 0
max-spaces-after: 1
commas:
max-spaces-before: 0
comments:
level: warning
require-starting-space: true
min-spaces-from-content: 1
comments-indentation: disable
document-end: disable
document-start: disable
empty-lines:
level: warning
max: 2
max-start: 0
max-end: 1
empty-values:
forbid-in-block-mappings: true
forbid-in-flow-mappings: true
hyphens:
max-spaces-after: 1
indentation:
spaces: consistent
indent-sequences: false
key-duplicates: enable
key-ordering: disable
line-length: disable
new-line-at-end-of-file: enable
# Use UNIX new line characters `\n` instead of DOS new line characters `\r\n`
new-lines:
type: unix
octal-values: disable
quoted-strings:
quote-type: any
required: false
trailing-spaces: enable
truthy: disable
Loading