Init node
This commit is contained in:
parent
f3c4a6c135
commit
d850cd6aac
4 changed files with 29 additions and 0 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -9,6 +9,7 @@ jobs:
|
|||
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
|
||||
- name: Set up Python 3.8
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
|
@ -17,6 +18,16 @@ jobs:
|
|||
with:
|
||||
path: ~/.cache/pip
|
||||
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
|
||||
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '10.x'
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: $HOME/.npm
|
||||
key: npm-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
- name: Install
|
||||
run: ./scripts/setup.sh
|
||||
- name: Run tests
|
||||
|
|
5
package-lock.json
generated
Normal file
5
package-lock.json
generated
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "website",
|
||||
"version": "1.0.0",
|
||||
"lockfileVersion": 1
|
||||
}
|
11
package.json
Normal file
11
package.json
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"name": "website",
|
||||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"description": "Another website, really?",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/RealOrangeOne/website.git"
|
||||
},
|
||||
"homepage": "https://github.com/RealOrangeOne/website#readme"
|
||||
}
|
|
@ -13,4 +13,6 @@ then
|
|||
pip install -r dev-requirements.txt
|
||||
fi
|
||||
|
||||
npm ci
|
||||
|
||||
./manage.py collectstatic --noinput
|
||||
|
|
Reference in a new issue