|
38 | 38 | - image: debian:bullseye
|
39 | 39 | resource_class: small
|
40 | 40 | steps:
|
41 |
| - - run: |
42 |
| - name: Install Yarn |
43 |
| - command: | |
44 |
| - apt update |
45 |
| - apt install -y wget git curl jq |
46 |
| -
|
47 |
| - apt-get update |
48 |
| - apt-get install -y ca-certificates curl gnupg |
49 |
| - mkdir -p /etc/apt/keyrings |
50 |
| - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg |
51 |
| -
|
52 |
| - NODE_MAJOR=18 |
53 |
| - echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list |
54 |
| - apt-get update |
55 |
| -
|
56 |
| - apt install -y nodejs |
57 |
| - npm install --global yarn |
58 |
| - - checkout |
59 |
| - - run: |
60 |
| - name: Yarn Install |
61 |
| - command: yarn install |
62 |
| - - when: |
63 |
| - condition: |
64 |
| - or: |
65 |
| - - equal: [ main, << pipeline.git.branch >> ] |
66 |
| - - matches: |
67 |
| - pattern: /0\.[0-9]+[\.[0-9]+]?-stable/ |
68 |
| - value: << pipeline.git.branch >> |
69 |
| - steps: |
70 |
| - - run: |
71 |
| - name: "[Main or Stable] Create input for config to test everything" |
72 |
| - command: | |
73 |
| - mkdir -p /tmp/circleci/ |
74 |
| - echo '{ "run_all": true }' > /tmp/circleci/pipeline_config.json |
75 |
| - - when: |
76 |
| - condition: |
77 |
| - not: |
78 |
| - or: |
79 |
| - - equal: [ main, << pipeline.git.branch >> ] |
80 |
| - - matches: |
81 |
| - pattern: /0\.[0-9]+[\.[0-9]+]?-stable/ |
82 |
| - value: << pipeline.git.branch >> |
83 |
| - steps: |
84 |
| - - run: |
85 |
| - name: "[PR Branch] Filter jobs" |
86 |
| - command: | |
87 |
| - if [[ -z "$CIRCLE_PULL_REQUEST" ]]; then |
88 |
| - echo "Not in a PR. Can't filter properly outside a PR. Please open a PR so that we can run the proper CI tests." |
89 |
| - echo "For safety, we run all the tests!" |
90 |
| - mkdir -p /tmp/circleci/ |
91 |
| - echo '{ "run_all": true }' > /tmp/circleci/pipeline_config.json |
92 |
| - else |
93 |
| - PR_NUMBER="${CIRCLE_PULL_REQUEST##*/}" |
94 |
| - node ./scripts/circleci/pipeline_selection.js filter-jobs |
95 |
| - fi |
96 |
| - - run: |
97 |
| - name: Create config |
98 |
| - description: Generates a configuration on the fly, depending on the files that have been modified |
99 |
| - command: | |
100 |
| - node ./scripts/circleci/pipeline_selection.js create-configs |
101 |
| - - store_artifacts: |
102 |
| - path: .circleci/generated_config.yml |
103 |
| - destination: generated_config.yml |
104 |
| - - continuation/continue: |
105 |
| - configuration_path: .circleci/generated_config.yml |
106 |
| - |
107 |
| -# our single workflow, that triggers the setup job defined above |
108 |
| -workflows: |
109 |
| - always-run: |
110 |
| - jobs: |
111 |
| - - choose_ci_jobs: |
112 |
| - filters: |
113 |
| - tags: |
114 |
| - only: /.*/ |
| 41 | + - run: echo "There is nothing here, just an empty job. Everything has been moved to GitHub Action" |
0 commit comments