migration of open-etc-friends-pool for use with Etica/EGAZ
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
name: ci |
|
|
|
|
|
on: |
|
|
push: |
|
|
branches: |
|
|
- master |
|
|
pull_request: |
|
|
branches: |
|
|
- master |
|
|
|
|
|
jobs: |
|
|
ci: |
|
|
runs-on: ${{ matrix.os }} |
|
|
|
|
|
strategy: |
|
|
matrix: |
|
|
os: [ubuntu-latest] |
|
|
node: [14] |
|
|
|
|
|
steps: |
|
|
- name: Checkout 🛎 |
|
|
uses: actions/checkout@master |
|
|
|
|
|
- name: Setup node env 🏗 |
|
|
uses: actions/setup-node@v2.1.5 |
|
|
with: |
|
|
node-version: ${{ matrix.node }} |
|
|
check-latest: true |
|
|
|
|
|
- name: Get yarn cache directory path 🛠 |
|
|
id: yarn-cache-dir-path |
|
|
run: echo "::set-output name=dir::$(yarn cache dir)" |
|
|
|
|
|
- name: Cache node_modules 📦 |
|
|
uses: actions/cache@v2 |
|
|
id: yarn-cache |
|
|
with: |
|
|
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
|
|
restore-keys: | |
|
|
${{ runner.os }}-yarn- |
|
|
|
|
|
- name: Install dependencies 👨🏻💻 |
|
|
run: yarn |
|
|
|
|
|
- name: Run linter 👀 |
|
|
run: yarn lint |
|
|
|
|
|
- name: Run tests 🧪 |
|
|
run: yarn test |
|
|
|
|
|
- name: Run tests in new-web directory 📂 |
|
|
working-directory: new-web |
|
|
run: yarn test
|
|
|
|