mirror of
https://github.com/barthuijgen/factorio-sites.git
synced 2024-11-21 18:16:33 +02:00
feat: upgrade to build in caching in actions and upgrade to node 18
This commit is contained in:
parent
f445b9933e
commit
37d32bdfc8
15
.github/workflows/deploy_dev.yml
vendored
15
.github/workflows/deploy_dev.yml
vendored
@ -13,18 +13,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 18
|
||||||
- name: Get yarn cache directory path
|
cache: "yarn"
|
||||||
id: yarn-cache-dir-path
|
- run: yarn --prefer-offline
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
id: yarn-cache
|
|
||||||
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 nx build blueprints
|
- run: yarn nx build blueprints
|
||||||
env:
|
env:
|
||||||
CF_WEB_ANALYTICS: 6c563c1e5db141129a5fc95d5c459722
|
CF_WEB_ANALYTICS: 6c563c1e5db141129a5fc95d5c459722
|
||||||
|
15
.github/workflows/deploy_prd.yml
vendored
15
.github/workflows/deploy_prd.yml
vendored
@ -13,18 +13,9 @@ jobs:
|
|||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: 18
|
||||||
- name: Get yarn cache directory path
|
cache: "yarn"
|
||||||
id: yarn-cache-dir-path
|
- run: yarn --prefer-offline
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v3
|
|
||||||
id: yarn-cache
|
|
||||||
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 nx build blueprints
|
- run: yarn nx build blueprints
|
||||||
env:
|
env:
|
||||||
PUBLIC_URL: https://factorio-blueprints-assets.storage.googleapis.com/public
|
PUBLIC_URL: https://factorio-blueprints-assets.storage.googleapis.com/public
|
||||||
|
17
.github/workflows/validate.yml
vendored
17
.github/workflows/validate.yml
vendored
@ -6,20 +6,11 @@ jobs:
|
|||||||
validate:
|
validate:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: "14.x"
|
node-version: 18
|
||||||
- name: Get yarn cache directory path
|
cache: "yarn"
|
||||||
id: yarn-cache-dir-path
|
|
||||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
||||||
- uses: actions/cache@v1
|
|
||||||
id: yarn-cache
|
|
||||||
with:
|
|
||||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-yarn-
|
|
||||||
- run: yarn --prefer-offline
|
- run: yarn --prefer-offline
|
||||||
- run: yarn nx run-many --all --target=lint
|
- run: yarn nx run-many --all --target=lint
|
||||||
- run: yarn nx run-many --all --target=test "--ci"
|
- run: yarn nx run-many --all --target=test "--ci"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM node:14-slim as builder
|
FROM node:18-slim as builder
|
||||||
|
|
||||||
RUN apt-get -qy update && apt-get -qy install openssl
|
RUN apt-get -qy update && apt-get -qy install openssl
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ COPY . .
|
|||||||
|
|
||||||
RUN yarn nx build blueprints --prod
|
RUN yarn nx build blueprints --prod
|
||||||
|
|
||||||
FROM node:14-slim
|
FROM node:18-slim
|
||||||
|
|
||||||
RUN apt-get -qy update && apt-get -qy install openssl
|
RUN apt-get -qy update && apt-get -qy install openssl
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM node:14-slim
|
FROM node:18-slim
|
||||||
|
|
||||||
RUN apt-get -qy update && apt-get -qy install openssl
|
RUN apt-get -qy update && apt-get -qy install openssl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user