Skip to content

Commit 79de12d

Browse files
authored
feat: rewrite with awesome-cv & add xendit in experience (#14)
BREAKING CHANGE: replace yaac-another-awesome-cv with awesome-cv
1 parent 7e898f3 commit 79de12d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1149
-801
lines changed

.github/workflows/general.yaml

+34-52
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,42 @@ name: general
22
on:
33
push:
44
branches:
5-
- "**"
5+
- '**'
66
tags-ignore:
7-
- "**"
7+
- '**'
88

99
jobs:
10+
prettier:
11+
name: prettier
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
- name: Run prettier checks
17+
uses: creyD/prettier_action@v4.2
18+
with:
19+
prettier_version: '2.5.1'
20+
prettier_options: --check **/*.{yaml,json,md}
21+
dry: true
22+
1023
super-linter:
1124
name: super-linter
1225
runs-on: ubuntu-20.04
1326
steps:
1427
- name: Checkout code
1528
uses: actions/checkout@v2
1629
- name: Run super linter
17-
uses: github/super-linter@v3
30+
uses: github/super-linter/slim@v4
1831
env:
1932
DEFAULT_BRANCH: main
2033
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21-
VALIDATE_ALL_CODEBASE: "true"
22-
VALIDATE_BASH: "true"
23-
VALIDATE_EDITORCONFIG: "true"
24-
VALIDATE_MD: "true"
25-
VALIDATE_YAML: "true"
34+
VALIDATE_ALL_CODEBASE: 'true'
35+
VALIDATE_BASH: 'true'
36+
VALIDATE_EDITORCONFIG: 'true'
37+
VALIDATE_MD: 'true'
38+
VALIDATE_YAML: 'true'
2639
FILTER_REGEX_EXCLUDE: '.*/(CHANGELOG\.md)'
2740

28-
textidote:
29-
name: textidote
30-
runs-on: ubuntu-20.04
31-
steps:
32-
- name: Checkout code
33-
uses: actions/checkout@v2
34-
- name: Run textidote
35-
uses: ChiefGokhlayeh/textidote-action@v4
36-
id: textidote-main
37-
with:
38-
working_directory: .
39-
root_file: src/resume.tex
40-
report_type: plain
41-
report_file: ""
42-
- name: Run textidote to generate report
43-
uses: ChiefGokhlayeh/textidote-action@v4
44-
with:
45-
working_directory: .
46-
root_file: src/resume.tex
47-
report_type: html
48-
report_file: report.html
49-
- name: Upload textidote report
50-
uses: actions/upload-artifact@v2
51-
with:
52-
name: textidote_report
53-
path: report.html
54-
if-no-files-found: error
55-
- name: Assert num_warnings == 0
56-
if: ${{ steps.textidote-main.outputs.num_warnings != 0 }}
57-
run: 'echo "num_warnings: ${{ steps.textidote-main.outputs.num_warnings }}"; exit 1;'
58-
5941
build-latex:
6042
name: build-latex
6143
runs-on: ubuntu-20.04
@@ -71,16 +53,16 @@ jobs:
7153
- name: Upload resume.pdf
7254
uses: actions/upload-artifact@v2
7355
with:
74-
name: resume
75-
path: src/resume.pdf
76-
if-no-files-found: error
56+
name: resume
57+
path: src/resume.pdf
58+
if-no-files-found: error
7759

7860
release:
7961
name: release
8062
if: github.ref == 'refs/heads/main'
8163
needs:
64+
- prettier
8265
- super-linter
83-
- textidote
8466
- build-latex
8567
runs-on: ubuntu-20.04
8668
steps:
@@ -104,15 +86,15 @@ jobs:
10486
GIT_COMMITTER_NAME: kirintwn
10587
GIT_COMMITTER_EMAIL: cy91244@gmail.com
10688
run: |
107-
npx \
108-
-p @semantic-release/commit-analyzer \
109-
-p @semantic-release/release-notes-generator \
110-
-p conventional-changelog-conventionalcommits \
111-
-p @semantic-release/changelog \
112-
-p @semantic-release/git \
113-
-p @semantic-release/github \
114-
-p semantic-release \
115-
semantic-release
89+
npx \
90+
-p @semantic-release/commit-analyzer \
91+
-p @semantic-release/release-notes-generator \
92+
-p conventional-changelog-conventionalcommits \
93+
-p @semantic-release/changelog \
94+
-p @semantic-release/git \
95+
-p @semantic-release/github \
96+
-p semantic-release \
97+
semantic-release
11698
11799
deploy-gh-pages:
118100
name: deploy-gh-pages

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CHANGELOG.md

.prettierrc.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"singleQuote": true,
4+
"arrowParens": "always",
5+
"printWidth": 120
6+
}

.textidote

-4
This file was deleted.

Earthfile

+10-9
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ all:
33
BUILD +build
44

55
test:
6+
BUILD +test-prettier
67
BUILD +test-super-linter
7-
BUILD +test-textidote
8+
9+
test-prettier:
10+
FROM node:16.14.0-alpine3.14
11+
RUN npm install --global prettier@2.5.1
12+
WORKDIR /opt/resume
13+
COPY --dir . ./
14+
RUN prettier --check .
815

916
test-super-linter:
10-
FROM github/super-linter:slim-v4.5.1
17+
FROM github/super-linter:slim-v4.9.0
1118
ENV RUN_LOCAL="true"
1219
ENV MULTI_STATUS="false"
1320
ENV VALIDATE_ALL_CODEBASE="true"
@@ -20,14 +27,8 @@ test-super-linter:
2027
COPY --dir . ./
2128
RUN /action/lib/linter.sh
2229

23-
test-textidote:
24-
FROM gokhlayeh/textidote:v4.1
25-
WORKDIR /opt/resume
26-
COPY --dir src .textidote dict.txt ./
27-
RUN /entrypoint.sh /opt/resume/src/resume.tex /opt/resume plain "" 0
28-
2930
build:
30-
FROM ghcr.io/xu-cheng/texlive-full:20210701
31+
FROM ghcr.io/xu-cheng/texlive-full:20220201
3132
WORKDIR /opt/resume
3233
COPY --dir src ./
3334
RUN latexmk \

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Kirin Hou
3+
Copyright (c) 2022 Kirin Hou
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
66

README.md

+26-5
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,39 @@
22

33
[![Release](https://img.shields.io/github/release/kirintwn/resume.svg?style=for-the-badge)](https://github.com/kirintwn/resume/releases/latest)
44
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=for-the-badge)](/LICENSE.md)
5-
[![Build status](https://img.shields.io/github/workflow/status/kirintwn/resume/general/main?style=for-the-badge)](https://github.com/kirintwn/resume/actions?workflow=test)
6-
[![TeXtidote](https://img.shields.io/badge/style-TeXtidote-yellowgreen?style=for-the-badge)](https://github.com/sylvainhalle/textidote)
5+
[![Build status](https://img.shields.io/github/workflow/status/kirintwn/resume/general/main?style=for-the-badge)](https://github.com/kirintwn/resume/actions?workflow=general)
76
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge)](https://github.com/semantic-release/semantic-release)
87

9-
My resume written in LaTeX based on [yaac-another-awesome-cv](https://github.com/darwiin/yaac-another-awesome-cv) with complete CI/CD pipline. Fully automated testing, building & release process is powered by GitHub Actions & [semantic-release](https://github.com/semantic-release/semantic-release). The output pdf can be found in the [releases section](https://github.com/kirintwn/resume/releases/latest), or the preview is available [here](https://kirintwn.github.io/resume/resume.pdf) with GitHub Pages.
8+
My resume written in LaTeX based on [Awesome-CV](https://github.com/posquit0/Awesome-CV) with complete CI/CD pipline. Fully automated testing, building & release process is powered by GitHub Actions & [semantic-release](https://github.com/semantic-release/semantic-release). The output pdf can be found in the [releases section](https://github.com/kirintwn/resume/releases/latest), or the preview is available [here](https://kirintwn.github.io/resume/resume.pdf) with GitHub Pages.
109

1110
## Download: [resume.pdf](https://kirintwn.github.io/resume/resume.pdf)
1211

12+
## Local Development
13+
14+
### Setup
15+
16+
The following tools need to be installed on your system in advance:
17+
18+
- `git`: `>=2`
19+
- `docker`: `>=18.09`
20+
- `earthly`: `>=0.6.8 <7`
21+
22+
First clone the repository:
23+
24+
```shell
25+
git clone git@github.com:kirintwn/resume.git
26+
```
27+
28+
### Test & Build Locally
29+
30+
- test: `earthly +test`
31+
- build: `earthly +build`
32+
- run test & build: `earthly`
33+
1334
## Credits
1435

1536
The list of some third party components used in this project, with due credits to their authors and license terms. More details can be found in their README documentations.
1637

17-
- [darwiin/yaac-another-awesome-cv](https://github.com/darwiin/yaac-another-awesome-cv)
38+
- [posquit0/Awesome-CV](https://github.com/posquit0/Awesome-CV)
1839
- [xu-cheng/latex-action](https://github.com/xu-cheng/latex-action)
19-
- [ChiefGokhlayeh/textidote-action](https://github.com/ChiefGokhlayeh/textidote-action)
40+
- [earthly/earthly](https://github.com/earthly/earthly)

dict.txt

-82
This file was deleted.

0 commit comments

Comments
 (0)