github-actions

How to stop Github Actions step when functional tests failed (using Codeception)

拥有回忆 提交于 2021-01-28 13:51:38
问题 I'm new with Github Actions and I try to make some continuous integration with functional tests. I use Codeception and my workflow run perfectly, but when some tests fail the step is written as success. Github don't stop the action and continue to run the nexts steps. Here is my workflow yml file : name: Run codeception tests on: push: branches: [ feature/functional-tests/codeception ] jobs: build: runs-on: ubuntu-latest steps: # —— Setup Github Actions 🐙 —————————————————————————————————————

How to stop Github Actions step when functional tests failed (using Codeception)

风格不统一 提交于 2021-01-28 13:47:41
问题 I'm new with Github Actions and I try to make some continuous integration with functional tests. I use Codeception and my workflow run perfectly, but when some tests fail the step is written as success. Github don't stop the action and continue to run the nexts steps. Here is my workflow yml file : name: Run codeception tests on: push: branches: [ feature/functional-tests/codeception ] jobs: build: runs-on: ubuntu-latest steps: # —— Setup Github Actions 🐙 —————————————————————————————————————

Github Environments

怎甘沉沦 提交于 2021-01-28 06:15:43
问题 I use GitHub actions to deploy my code. Their documentation states that they have Environments (in beta) that can be enabled. I do not see Environments as an option in the settings of my repository. Does anyone know how I can enable this? **Edited to add: I am using a Private Github Repository 回答1: It's not available for a private repositories on github.com in the open beta. In this open beta there is no need to sign up, all existing GitHub organizations and accounts can use the new

How to show demo with HTML and JavaScript (D3.js) on GitHub for every commit

余生长醉 提交于 2021-01-27 18:43:07
问题 I'm developing application that uses D3.js to showing some visualizations. How can I show preview of HTML file (that uses JS) on GitHub? I need demo for every commits (historical), not only for latest version. I generate static version of my application to HTML+JS with bundled JSON data and linked D3.js library from CDN, so I need only to serve HTML+JS. No backend. GitHub Pages My first thought is using GitHub Pages (it's popular answers #1, #2) . It is good, but with this I can show demo

Using date as an ENV variable in GitHub action

南楼画角 提交于 2021-01-25 07:23:00
问题 This is very funny but very frustrating problem. I am using an ENV variable, which specifies date. I provide an ISO 8601 compliant version and in application, I retrieve it and parse. When I specify it in GH action workflow, it is get parsed as a date (rather than a string) and formatted. Therefore, my application parsing fails. Example: .github/workflows/rust.yaml env: MY_DATE: '2020-10-07T12:00:00+01:00' run: echo $MY_DATE Result (GH action UI): env: TMOU_GAME_END: 10/07/2020 11:00:00 10/07

Using date as an ENV variable in GitHub action

陌路散爱 提交于 2021-01-25 07:21:47
问题 This is very funny but very frustrating problem. I am using an ENV variable, which specifies date. I provide an ISO 8601 compliant version and in application, I retrieve it and parse. When I specify it in GH action workflow, it is get parsed as a date (rather than a string) and formatted. Therefore, my application parsing fails. Example: .github/workflows/rust.yaml env: MY_DATE: '2020-10-07T12:00:00+01:00' run: echo $MY_DATE Result (GH action UI): env: TMOU_GAME_END: 10/07/2020 11:00:00 10/07

Using date as an ENV variable in GitHub action

陌路散爱 提交于 2021-01-25 07:21:34
问题 This is very funny but very frustrating problem. I am using an ENV variable, which specifies date. I provide an ISO 8601 compliant version and in application, I retrieve it and parse. When I specify it in GH action workflow, it is get parsed as a date (rather than a string) and formatted. Therefore, my application parsing fails. Example: .github/workflows/rust.yaml env: MY_DATE: '2020-10-07T12:00:00+01:00' run: echo $MY_DATE Result (GH action UI): env: TMOU_GAME_END: 10/07/2020 11:00:00 10/07

Using date as an ENV variable in GitHub action

ⅰ亾dé卋堺 提交于 2021-01-25 07:20:58
问题 This is very funny but very frustrating problem. I am using an ENV variable, which specifies date. I provide an ISO 8601 compliant version and in application, I retrieve it and parse. When I specify it in GH action workflow, it is get parsed as a date (rather than a string) and formatted. Therefore, my application parsing fails. Example: .github/workflows/rust.yaml env: MY_DATE: '2020-10-07T12:00:00+01:00' run: echo $MY_DATE Result (GH action UI): env: TMOU_GAME_END: 10/07/2020 11:00:00 10/07

GITHUB_ENV Variable in GitHub Actions

淺唱寂寞╮ 提交于 2021-01-24 08:15:27
问题 I'm trying to save a variable name in one step, using date. But, in a later step, it seems to be undefined (or empty?). What am I missing here? jobs: # Create release branch for the week branch: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Format the date of next Tuesday id: tuesday run: echo "abbr=$(date -v+tuesday +'%y%m%d')" >> $GITHUB_ENV - name: Create a branch with next tuesday's date uses: peterjgrainger/action-create-branch@v2.0.1 env: GITHUB_TOKEN: ${{ secrets

GITHUB_ENV Variable in GitHub Actions

坚强是说给别人听的谎言 提交于 2021-01-24 08:14:55
问题 I'm trying to save a variable name in one step, using date. But, in a later step, it seems to be undefined (or empty?). What am I missing here? jobs: # Create release branch for the week branch: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Format the date of next Tuesday id: tuesday run: echo "abbr=$(date -v+tuesday +'%y%m%d')" >> $GITHUB_ENV - name: Create a branch with next tuesday's date uses: peterjgrainger/action-create-branch@v2.0.1 env: GITHUB_TOKEN: ${{ secrets