Merge pull request #242 from jonnybarnes/use-different-env-for-deployments
Use better named environment for deployments
This commit is contained in:
commit
918b60eb60
2 changed files with 5 additions and 5 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -7,7 +7,7 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: Deployments
|
environment: Hetzner
|
||||||
env:
|
env:
|
||||||
repository: 'jonnybarnes/jonnybarnes.uk'
|
repository: 'jonnybarnes/jonnybarnes.uk'
|
||||||
newReleaseName: '${{ github.run_id }}'
|
newReleaseName: '${{ github.run_id }}'
|
||||||
|
|
|
@ -72,12 +72,12 @@ class ArticlesTest extends TestCase
|
||||||
Article::factory()->create();
|
Article::factory()->create();
|
||||||
|
|
||||||
$yearAndMonth = Article::date(date('Y'), date('m'))->get();
|
$yearAndMonth = Article::date(date('Y'), date('m'))->get();
|
||||||
$this->assertTrue(count($yearAndMonth) === 1);
|
$this->assertCount(1, $yearAndMonth);
|
||||||
|
|
||||||
$priorYear = Article::date(date('Y') - 1, 1)->get();
|
$priorYear = Article::date(date('Y') - 2, 1)->get();
|
||||||
$this->assertTrue(count($priorYear) === 0);
|
$this->assertCount(0, $priorYear);
|
||||||
|
|
||||||
$emptyScope = Article::date()->get();
|
$emptyScope = Article::date()->get();
|
||||||
$this->assertTrue(count($emptyScope) === 2);
|
$this->assertCount(2, $emptyScope);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue