diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 395463c..2a4227a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6ec588c --- /dev/null +++ b/package-lock.json @@ -0,0 +1,5 @@ +{ + "name": "website", + "version": "1.0.0", + "lockfileVersion": 1 +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..121d271 --- /dev/null +++ b/package.json @@ -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" +} diff --git a/scripts/setup.sh b/scripts/setup.sh index 7bc2e37..36f79f5 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -13,4 +13,6 @@ then pip install -r dev-requirements.txt fi +npm ci + ./manage.py collectstatic --noinput