mirror of
https://github.com/koodiklinikka/palkkakysely.git
synced 2026-03-18 20:05:26 +00:00
Refresh CI
This commit is contained in:
37
.github/workflows/build.yml
vendored
37
.github/workflows/build.yml
vendored
@@ -14,37 +14,21 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2.3.1
|
- uses: actions/checkout@v3
|
||||||
- name: Set up Python 3.9
|
- name: Set up Python 3.10
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
with:
|
with:
|
||||||
python-version: 3.9
|
python-version: "3.10"
|
||||||
- name: Cache pip
|
cache: pip
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ~/.cache/pip
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: python -m pip install -r requirements.txt
|
||||||
python -m pip install --upgrade pip wheel
|
|
||||||
python -m pip install -r requirements.txt
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: make -j3
|
run: make -j3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '16'
|
||||||
- name: Get yarn cache directory path
|
cache: yarn
|
||||||
id: yarn-cache-dir-path
|
cache-dependency-path: analysaattori/yarn.lock
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
- run: yarn
|
- run: yarn
|
||||||
working-directory: analysaattori
|
working-directory: analysaattori
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
@@ -58,3 +42,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
branch: gh-pages
|
branch: gh-pages
|
||||||
folder: out
|
folder: out
|
||||||
|
if: ${{ github.event_name == 'push' }}
|
||||||
|
|||||||
Reference in New Issue
Block a user