-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (44 loc) · 1.56 KB
/
dev.yml
File metadata and controls
48 lines (44 loc) · 1.56 KB
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
39
40
41
42
43
44
45
46
47
48
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Build and push dev
on:
push:
branches: [master]
jobs:
checkArtifact:
env:
CLEAN_INSTALL: false
name: Check artifact downloading
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v1
- run: env
- name: Download Artifact
uses: dawidd6/action-download-artifact@v2
continue-on-error: true
env:
DIST_NAME: ${{ format('build2_{0}', github.event.pull_request.head.sha) }}
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: lint.yaml
name: ${{ env.DIST_NAME }}
path: build
- name: App folders
run: echo "APP_FOLDERS=$(find . -maxdepth 1 -type d -printf '%f\n')" >> $GITHUB_ENV
- name: ECHO APP FOLDERS
run: echo $APP_FOLDERS
# - name: Mark Clean Install
# if: ${{!contains($APP_FOLDERS, 'dist') }}
# run: CLEAN_INSTALL="true"
- name: Read actions/cache
if: ${{ env.CLEAN_INSTALL == true }}
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: ${{ env.CLEAN_INSTALL == true }}
run: yarn install --frozen-lockfile
- name: Ls
run: "ls -l"