Skip to content

Commit

Permalink
feat(GitHubCI): add job v18
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Feb 25, 2023
1 parent 9f37c11 commit 51ebda4
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

on: [push, pull_request]

jobs:
checkout_code:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Save repository's content as artifact
uses: actions/upload-artifact@v3
with:
name: repo
path: ${{ github.workspace }}

v18:
runs-on: ubuntu-22.04
needs: checkout_code
container:
image: "node:18-buster"
steps:
- name: Install sudo
run: |
apt update
apt install -y sudo
- name: Setup file system permissions
run: sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp
- name: Get repository's content
uses: actions/download-artifact@v3
with:
name: repo
- uses: actions/cache@v3
with:
path: node_modules
key: v1-dependencies-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
v1-dependencies-${{ hashFiles('**/yarn.lock') }}
v1-dependencies-
- name: Update yarn
run: |
node -v
yarn global add yarn@latest
- name: Install dependencies
run: yarn install --ignore-engines --frozen-lockfile
- name: Build packages
run: yarn build
- name: Test
run: yarn test-ci

0 comments on commit 51ebda4

Please sign in to comment.