1
0
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:
Bart Huijgen 2022-11-14 11:55:29 +01:00
parent f445b9933e
commit 37d32bdfc8
5 changed files with 13 additions and 40 deletions

View File

@ -13,18 +13,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Get yarn cache directory path
id: yarn-cache-dir-path
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
node-version: 18
cache: "yarn"
- run: yarn --prefer-offline
- run: yarn nx build blueprints
env:
CF_WEB_ANALYTICS: 6c563c1e5db141129a5fc95d5c459722

View File

@ -13,18 +13,9 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14
- name: Get yarn cache directory path
id: yarn-cache-dir-path
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
node-version: 18
cache: "yarn"
- run: yarn --prefer-offline
- run: yarn nx build blueprints
env:
PUBLIC_URL: https://factorio-blueprints-assets.storage.googleapis.com/public

View File

@ -6,20 +6,11 @@ jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "14.x"
- name: Get yarn cache directory path
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-
node-version: 18
cache: "yarn"
- run: yarn --prefer-offline
- run: yarn nx run-many --all --target=lint
- run: yarn nx run-many --all --target=test "--ci"

View File

@ -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
@ -15,7 +15,7 @@ COPY . .
RUN yarn nx build blueprints --prod
FROM node:14-slim
FROM node:18-slim
RUN apt-get -qy update && apt-get -qy install openssl

View File

@ -1,4 +1,4 @@
FROM node:14-slim
FROM node:18-slim
RUN apt-get -qy update && apt-get -qy install openssl