Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
026a49d
commit 231d4c4
Showing
12 changed files
with
122 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: ci | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
ci: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: [14, 15] | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@master | ||
|
||
- name: Setup node env 📦 | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Get npm cache directory 🏗 | ||
id: npm-cache | ||
run: echo "::set-output name=dir::$(npm config get cache)" | ||
|
||
- name: Restore cached node_modules 🤷♂️ | ||
uses: actions/cache@v2.1.4 | ||
with: | ||
path: ${{ steps.npm-cache.outputs.dir }} | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
- name: Install dependencies 🛠 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: npm ci --prefer-offline --no-audit | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Generate the static site ⚡️ | ||
run: npm run generate | ||
env: | ||
API_URL: ${{ secrets.API_URL }} | ||
GOOGLE_MAP_KEY: ${{ secrets.GOOGLE_MAP_KEY }} | ||
INIT_CUST_LAT: ${{ secrets.INIT_CUST_LAT }} | ||
INIT_CUST_LNG: ${{ secrets.INIT_CUST_LNG }} | ||
BUILD_ENV: 'ci' | ||
|
||
- name: Check for lint errors 👀 | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"volar.tsPlugin": true | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,3 @@ | ||
module.exports = { | ||
presets: ['@babel/preset-env'], | ||
env: { | ||
test: { | ||
plugins: [ | ||
[ | ||
'module-resolver', | ||
{ | ||
root: ['./'], | ||
alias: { | ||
'@': './', | ||
'~': './', | ||
}, | ||
}, | ||
], | ||
], | ||
ignore: ['ava.config.cjs'], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
'*.{js,vue}': 'npm run lint:js', | ||
'*.{css,vue}': 'npm run lint:style', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.