Skip to content

Commit

Permalink
fix: Revert "ci: fix warnings about deprecated actions"
Browse files Browse the repository at this point in the history
This reverts commit 8dd716e.
  • Loading branch information
dziraf committed Jan 3, 2023
1 parent 41fa86c commit 4664acc
Showing 1 changed file with 58 additions and 27 deletions.
85 changes: 58 additions & 27 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,58 @@
name: CI/CD
on: [push, pull_request]

jobs:
setup:
name: setup
runs-on: ubuntu-latest
steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: '14'
cache: 'yarn'
node-version: "14.x"
- uses: actions/cache@v1
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
run: yarn install --frozen-lockfile
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install

build:
name: build
runs-on: ubuntu-latest
needs: setup
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: "14.x"
- uses: actions/cache@v1
id: yarn-cache
with:
node-version: '14'
cache: 'yarn'
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Assets cache
uses: actions/cache@v3

- uses: actions/cache@v1
id: assets-cache
with:
path: src/frontend/assets/scripts
key: assets-${{ hashFiles('**/src/frontend/global-entry.js') }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/bin/bundle-globals.js') }}
key: assets-${{ hashFiles('**/src/frontend/global-entry.js') }}-${{ hashFiles('**/yarn.lock') }}-{{ hashFiles('**/bin/bundle-globals.js') }}
restore-keys: |
assets-
- name: bundle globals production
Expand All @@ -60,7 +77,7 @@ jobs:
|| contains(github.ref, 'refs/heads/next-major')
|| contains(github.ref, 'refs/heads/beta')
|| contains(github.ref, 'refs/heads/dev')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v1
with:
name: lib
path: lib
Expand All @@ -71,7 +88,7 @@ jobs:
|| contains(github.ref, 'refs/heads/next-major')
|| contains(github.ref, 'refs/heads/beta')
|| contains(github.ref, 'refs/heads/dev')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v1
with:
name: types
path: types
Expand All @@ -82,7 +99,7 @@ jobs:
|| contains(github.ref, 'refs/heads/next-major')
|| contains(github.ref, 'refs/heads/beta')
|| contains(github.ref, 'refs/heads/dev')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v1
with:
name: bundle
path: src/frontend/assets/scripts
Expand All @@ -93,13 +110,20 @@ jobs:
needs: setup
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: "14.x"
- uses: actions/cache@v1
id: yarn-cache
with:
node-version: '14'
cache: 'yarn'
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Lint
run: yarn lint
Expand Down Expand Up @@ -228,24 +252,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-node@v3
uses: actions/setup-node@v1
with:
node-version: '14'
cache: 'yarn'
node-version: "14.x"
- uses: actions/cache@v1
id: yarn-cache
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Install
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install
- name: Download Build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: lib
- name: Download Types
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: types
- name: Download Bundle
uses: actions/download-artifact@v3
uses: actions/download-artifact@v1
with:
name: bundle
- name: Release
Expand Down

0 comments on commit 4664acc

Please sign in to comment.