-
Notifications
You must be signed in to change notification settings - Fork 1.4k
38 lines (38 loc) · 1.15 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: build-scratch-blocks
on:
push:
jobs:
setup:
runs-on: ubuntu-latest
env:
JVM_OPTS: -Xmx3200m
DETECT_CHROMEDRIVER_VERSION: "true"
PROJECT_PATH: ./scratch-blocks
container:
image: python:2.7.18-buster
steps:
- uses: actions/checkout@v3
- name: Install Chrome Dependencies
run: |
apt-get update
apt-get install -y libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev libasound2
- name: Check Python version
run: python --version
- name: Setup Java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 17
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Setup Chrome
uses: browser-actions/setup-chrome@v1
with:
chrome-version: latest
- name: Install Node Dependencies
working-directory: ./scratch-blocks
env:
NODE_ENV: "development"
run: npm ci