-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (39 loc) · 1.24 KB
/
build-and-test.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
39
40
41
name: CI-Build and Test
on:
workflow_call:
inputs:
target:
description: the testing target
required: true
type: string
secrets:
CR_PAT:
required: true
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-22.04
container:
image: ghcr.io/social-tw/social-tw-website/circom_node_env:0.0.1
credentials:
username: lisooo790926
password: ${{ secrets.CR_PAT }}
timeout-minutes: 30
steps:
- name: Modify system variable PATH
run: echo "/root/.cargo/bin" >> $GITHUB_PATH
- name: Check out repository code
uses: actions/checkout@v3
- name: Clean and Install packages
run: |
rm -rf node_modules package-lock.json
yarn
- name: Build
run: yarn build
- name: Downcase target
id: downcase
uses: ASzc/change-string-case-action@v5
with:
string: ${{ inputs.target }}
- name: Test
run: yarn ${{ steps.downcase.outputs.lowercase }} test