Skip to content

Migrating from CircleCI #26975

Answered by weide-zhou
malimccalla asked this question in Actions
Discussion options

You must be logged in to vote

Hi @malimccalla ,

It should be like below:

name: version2
on: [push] # define the event to trigger the workflow

jobs:
job1:
defaults:
run:
working-directory: ~/tunebase #set the working directory for the job.
services: #define 3 different services
cypress:
image: cypress/base:10
postgres:
image: circleci/postgres:9.6.5-alpine-ram
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: tunebase-test
redis:
image: redis

runs-on: ubuntu-latest
steps:
  - name: checkout # use action to checkout the repo content
    uses: actions/checkout@v2
  - name: Restore Yarn Package Cache # restore & save cache
    uses: actions/cache@v1
    with:
      path: ~/.cache
      key: v24-depende…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Product Feedback
2 participants