Skip to content

Commit 7254e7e

Browse files
authored
Merge pull request yajra#11 from emmanuelarturo/main
2 parents 5d38def + 688dc6b commit 7254e7e

File tree

3 files changed

+74
-7
lines changed

3 files changed

+74
-7
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Semantic Releases
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
issues: write
10+
packages: write
11+
statuses: write
12+
13+
jobs:
14+
run:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout Code
18+
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
21+
22+
- name: Setup Configuration
23+
run: |
24+
if [ -n "$GH_TOKEN_SECRET" ]; then
25+
echo "GH_TOKEN=$GH_TOKEN_SECRET" >> $GITHUB_ENV
26+
else
27+
echo "GH_TOKEN=$GITHUB_TOKEN" >> $GITHUB_ENV
28+
fi
29+
env:
30+
GH_TOKEN_SECRET: ${{ secrets.GH_TOKEN }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v4
35+
with:
36+
node-version: 'lts/*'
37+
38+
- name: Semantic Release
39+
uses: cycjimmy/semantic-release-action@9cc899c47e6841430bbaedb43de1560a568dfd16
40+
env:
41+
GH_TOKEN: ${{ secrets.GH_TOKEN }}

.releaserc.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"branches": [
3+
"main",
4+
"master",
5+
"*.x"
6+
],
7+
"plugins": [
8+
"@semantic-release/commit-analyzer",
9+
"@semantic-release/release-notes-generator",
10+
[
11+
"@semantic-release/changelog",
12+
{
13+
"changelogFile": "CHANGELOG.md"
14+
}
15+
],
16+
[
17+
"@semantic-release/git",
18+
{
19+
"assets": [
20+
"CHANGELOG.md"
21+
]
22+
}
23+
],
24+
"@semantic-release/github"
25+
]
26+
}

tests/Feature/SQLLoaderTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
test('it can detect FILLER and DATE columns', function () {
127127
Process::fake();
128128

129-
$loader = new SQLLoader();
129+
$loader = new SQLLoader;
130130
$loader->inFile(__DIR__.'/../data/filler.dat')
131131
->as('users.ctl')
132132
->withHeaders()
@@ -151,7 +151,7 @@
151151
test('it can detect BOOLEAN columns and set the default value if empty', function () {
152152
Process::fake();
153153

154-
$loader = new SQLLoader();
154+
$loader = new SQLLoader;
155155
$loader->inFile(__DIR__.'/../data/filler.dat')
156156
->as('users.ctl')
157157
->withHeaders()
@@ -171,7 +171,7 @@
171171
test('it can detect BOOLEAN columns and set the default value to 0 if no default was defined', function () {
172172
Process::fake();
173173

174-
$loader = new SQLLoader();
174+
$loader = new SQLLoader;
175175
$loader->inFile(__DIR__.'/../data/filler.dat')
176176
->as('users.ctl')
177177
->withHeaders()
@@ -191,7 +191,7 @@
191191
test('it accepts withHeader on input file with wildcard', function () {
192192
Process::fake();
193193

194-
$loader = new SQLLoader();
194+
$loader = new SQLLoader;
195195
$path = __DIR__.'/../data/wildcard/*.dat';
196196
$loader->inFile($path)
197197
->as('users.ctl')
@@ -215,7 +215,7 @@
215215
test('it can set the default date format', function () {
216216
Process::fake();
217217

218-
$loader = new SQLLoader();
218+
$loader = new SQLLoader;
219219
$loader->inFile(__DIR__.'/../data/filler.dat')
220220
->as('users.ctl')
221221
->dateFormat('YYYY-MM-DD')
@@ -235,7 +235,7 @@
235235
test('it can process constants columns', function () {
236236
Process::fake();
237237

238-
$loader = new SQLLoader();
238+
$loader = new SQLLoader;
239239
$loader->inFile(__DIR__.'/../data/users.dat')
240240
->as('users.ctl')
241241
->withHeaders()
@@ -262,7 +262,7 @@
262262
test('it can set input file os file proc clause', function () {
263263
Process::fake();
264264

265-
$loader = new SQLLoader();
265+
$loader = new SQLLoader;
266266
$loader->inFile(__DIR__.'/../data/users.dat', osFileProcClause: 'os file proc')
267267
->as('users.ctl')
268268
->withHeaders()

0 commit comments

Comments
 (0)