Skip to content

Commit

Permalink
Copy build steps
Browse files Browse the repository at this point in the history
Signed-off-by: Evaldo Felipe <contato@evaldofelipe.com>
  • Loading branch information
evaldofelipe committed Oct 2, 2023
1 parent c9691e4 commit 22b9523
Showing 1 changed file with 26 additions and 12 deletions.
38 changes: 26 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Archive build artifacts
uses: actions/cache@v3
with:
path: |
dist/*
key: build-cache-${{ github.sha }}
# - name: Archive build artifacts
# uses: actions/cache@v3
# with:
# path: |
# dist/*
# key: build-cache-${{ github.sha }}
test:
name: Test
runs-on: ubuntu-latest
Expand All @@ -38,13 +38,21 @@ jobs:
ci_index: [0, 1, 2, 3]
ci_total: [4]
steps:
- name: Download build artifacts
uses: actions/cache/restore@v3
id: restore-cache
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Additional dependencies
run: |
sudo apt-get update -y
sudo apt-get -y install rsync libudev-dev libusb-1.0-0-dev
- name: Use Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
path: |
dist/
key: build-cache-${{ github.sha }}
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Execute tests
run: yarn test --bail
env:
Expand All @@ -57,12 +65,18 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Install Additional dependencies
run: |
sudo apt-get update -y
sudo apt-get -y install rsync libudev-dev libusb-1.0-0-dev
- name: Use Node ${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
cache: "yarn"
- name: Install packages
run: yarn install --frozen-lockfile
- name: Build
run: yarn build
- name: Lint
run: yarn lint

0 comments on commit 22b9523

Please sign in to comment.